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.

I have seen many times when I try to connect to default gateways through my web browser , it redirects me to 0.0.0.0 . And it shows firefox can't found 0.0.0.0 . Why this happens? If the IP 0.0.0.0 have specific significance. Is it possible to have IP like 0.0.0.0? Can anybody explain me this? Thanks in advance.

share|improve this question

migrated from serverfault.com Feb 17 '11 at 9:53

This question came from our site for system and network administrators.

    
0.0.0.0 is the "any ip". It'll match anything basically. That's why in a routing table the default gateway is usually given as 0.0.0.0 ip.of.default.gateway –  Sirex Feb 17 '11 at 9:29

1 Answer 1

up vote 0 down vote accepted

There is one default gateway and you pass through default gateway to reach hosts that are not in your subnet.

when you set route for some default gateway, and print that route it will show that connections to 0.0.0.0 are made via IP of default gateway , meaning connecting anywhere outside own subnet is made via that IP.

Other situation where you can use 0.0.0.0 is when you want to bind some service to listen on all interfaces (multiple public private ips, multiple NICs)

share|improve this answer

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.