you are viewing a single comment's thread.

view the rest of the comments →

[–]bopomofodojo 2 insightful - 1 fun2 insightful - 0 fun3 insightful - 1 fun -  (1 child)

127.0.0.1 (and, properly, the whole 127.0.0.0/8 CIDR range) is for loopback addresses. These addresses are not routeable and are always used for local connections to the same host.

0.0.0.0 (technically, 0.0.0.0/0) is a wildcard address. How it behaves is system-specific, but on most UNIX-like systems it means "bind on all possible IPs on this host". It isn't actually a valid address, simply used as a placeholder to represent the "bind on everything" notion.

Without going into the pros and cons of writing a custom webserver in C (mostly cons), generally you'd want to support both since they both do different things and different admins will have different uses for them.

[–][deleted] 2 insightful - 1 fun2 insightful - 0 fun3 insightful - 1 fun -  (0 children)

Thank you very much.