Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Opera (version 10.10) under Linux (don't know about other OSes) does not recognize http://0.0.0.0/ as local address (http://127.0.0.1/) , while Firefox does.

What is the difference between these addresses?

Which ob the two browsers in this case is standard conform?

EDIT
Not only Firefox, but also Konqueror and wget handle 0.0.0.0 same way as local address. So, could it be Linux-specific?

share|improve this question

migrated from stackoverflow.com Mar 28 '10 at 16:38

This question came from our site for professional and enthusiast programmers.

1  
Should be on server fault I guess –  Jan Jongboom Mar 28 '10 at 16:31
    
It might very well be linux specific, or distribution-specific, or whatever. No windows application/tool i know of acts this way. –  M.A. Hanin Mar 28 '10 at 17:20
add comment

3 Answers

up vote 8 down vote accepted

The localhost is normally 127.0.0.1. All 127.x.x.x are considered loopback. I think firefox is the exception on this case.

"Loopback" IP addresses:

    127.0.0.0 - 127.255.255.255

Each computer on the Internet uses 127.0.0.0/8 to identify itself, to itself. 127.0.0.0 to 127.255.255.255 is earmarked for what is called "loopback". This construct allows a computer to establish/validate its IP stack. Most software only uses 127.0.0.1 for loopback purposes (the other addresses in this range are seldom used). All of the addresses within the loopback address are treated with the same levels of restriction in Internet routing, so it is difficult to use any other addresses within this block for anything other than node specific applications, generally bootstraping. This is documented in RFC 3330.

(taken from IANA.org)

The 0.0.0.0 address is:

0.0.0.0/8 reserved for self-identification [RFC5735]

(taken again from IANA)

and in details:

0.0.0.0/8 - Addresses in this block refer to source hosts on "this" network. Address 0.0.0.0/32 may be used as a source address for this host on this network; other addresses within 0.0.0.0/8 may be used to refer to specified hosts on this network ([RFC1122], Section 3.2.1.3).

(taken from RFC 5735)

share|improve this answer
add comment

According to Wikipedia, the only correct address (reserved explicitly for that purpose) is 127.0.0.1. I don't think it's correct to treat 0.0.0.0 as localhost - Firefox doesn't do it for me on Windows 7, anyway.

share|improve this answer
add comment

This link says that 0.0.0.0 is used for "broadcast messages to the current ("this") network as specified by RFC 1700, page 4."

I would suggest that Opera is correct, as Firefox is interpreting an address that is only valid as a source address as a destination address.

share|improve this answer
2  
Mmmm, I'm not a network expert, but the "current network" is not identical with the local host is it? –  Pekka 웃 Mar 28 '10 at 16:38
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.