This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 5733 - HTTP Server should default to 127.0.0.1 not "localhost"
Summary: HTTP Server should default to 127.0.0.1 not "localhost"
Status: CLOSED WORKSFORME
Alias: None
Product: ide
Classification: Unclassified
Component: Internal Server (show other bugs)
Version: 3.x
Hardware: All All
: P4 normal (vote)
Assignee: _ tboudreau
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-02-14 19:18 UTC by _ tboudreau
Modified: 2002-07-19 15:19 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ tboudreau 2000-02-14 19:18:48 UTC
> When connected to the network they return my machine name and its IP address
> as you would expect (in this case the IDE uses the machine name within the
> URL).  However, with no network connection an UnkownHostException is raised
> but the IDE uses localhost in the URL.  In this case where is the word
> localhost coming from?  Its not from the call to getHostName as that

> exceptions.  Does the IDE trap this exception and then substitute localhost?
> If this is the case would it not be more sensible to use 127.0.0.1 as the
> exception implies the inability to resolve a name.
Comment 1 Marek Grummich 2000-07-25 09:22:59 UTC
Priority is changed to P4 (normal).