Skip to content

The HTTP server runs on localhost:8080 instead of http://0.0.0.0:8080 #4979

Answered by webknjaz
DablSi asked this question in Q&A
Discussion options

You must be logged in to vote

0.0.0.0 is a catch-all wildcard for binding to all the interfaces available on the machine as opposed to listening to only one specific address. Strictly speaking, it does not have any semantical meaning in terms of routing traffic to a specific location. So when the client says "I want to send some bytes to 0.0.0.0", technically this doesn't mean anything. While saying "send the traffic to 127.0.0.1" (or "localhost" for that matter) should work because the networking subsystem can look that up in the routing table and will know where to send your queries over the network.

Using 0.0.0.0 only makes sense on the server-side in terms of binding to machine-local network interfaces. Some opera…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by webknjaz

This comment was marked as spam.

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #4979 on September 27, 2020 20:28.