Closed Bug 185890 Opened 22 years ago Closed 19 years ago

http://localhost urls get remapped to http://ipaddr/ without port information

Categories

(Core :: Networking: HTTP, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: stevel, Assigned: darin.moz)

References

()

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3a) Gecko/20021212 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3a) Gecko/20021212 Take a URL to tomcat, as installed out the box on my local system: http://localhost:8080/index.jsp Browse to it. instead of seeing the tomcat start page (as on IE), I get a pause, a status line saying "Sending request to 192.168.1.34", and then eventually the URL in the browser bar becomes http://192.168.1.34/ and I get a TCP error page. Because there is no server on http://192.168.1.34/; only on port 80. Type in the correct path of http://192.168.1.34:8080/ , or even http://ranier:8080/ and all works, but for some reason http://localhost is broken, because whatever code handles that cannot deal with the concept of the web server being anywhere other than port 80. Reproducible: Always Steps to Reproduce: 1. install a web server on port 8080 2. dont run anything on port 80 3. try and browse to http://localhost:8080/ Actual Results: I get a TCP-connect error, because it is trying to browse to http://my-local-ipaddress/ without any port information Expected Results: If you are going to remap localhost to an ipaddr, retain port info. Or just not bother with going that far down the networking stack and try and open a socket to localhost.
Do you have a log entry in your server you can post here?
Summary: http://localhost urls get remapped to http://ipaddr/ without port information → http://localhost urls get remapped to http://ipaddr/ without port information
WORKSFORME linux 2003010208. i have a proxy running locally on port 8080, and http://localhost:8080/ hits the proxy server's error page as expected. reporter: do you have some sort of personal firewall software on your system?
no firewall software, just boring old XP; tomcat 4.1.18 on the server. Which responds to a GET / HTTP/1.0 with a redir HTTP/1.1 302 Moved Temporarily Location: http://localhost:8080/index.jsp Content-Type: text/plain Content-Length: 0 Date: Sat, 04 Jan 2003 00:19:57 GMT Server: Apache Coyote/1.0 Connection: close
Worksforme Running Windows XP with Moz 1.8b2 (not using tomcat, but ssh tunnel listening on localhost:1080 Reporter - can you confirm that this is still a problem with a recent version of mozilla
This is an automated message, with ID "auto-resolve01". This bug has had no comments for a long time. Statistically, we have found that bug reports that have not been confirmed by a second user after three months are highly unlikely to be the source of a fix to the code. While your input is very important to us, our resources are limited and so we are asking for your help in focussing our efforts. If you can still reproduce this problem in the latest version of the product (see below for how to obtain a copy) or, for feature requests, if it's not present in the latest version and you still believe we should implement it, please visit the URL of this bug (given at the top of this mail) and add a comment to that effect, giving more reproduction information if you have it. If it is not a problem any longer, you need take no action. If this bug is not changed in any way in the next two weeks, it will be automatically resolved. Thank you for your help in this matter. The latest beta releases can be obtained from: Firefox: http://www.mozilla.org/projects/firefox/ Thunderbird: http://www.mozilla.org/products/thunderbird/releases/1.5beta1.html Seamonkey: http://www.mozilla.org/projects/seamonkey/
Definitely WORKSFORME in Firefox 1.0 or later.
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.