It seems that Rails and Django can start binding the server to IP, either
0.0.0.0, 127.0.0.1, or 192.168.1.2 <-- the last one is my local IP
Are there any other options? It seems that 0.0.0.0 and 192.168.1.2 can allow a virtual PC on the same computer to access this website, while 127.0.0.1 cannot.
However, if this is only the same laptop using localhost: 3000 (for Rails), then that doesn't matter. But in any case, 0.0.0.0haps000 will not work.
How it works? What are the usage values โโof 0.0.0.0 vs 127.0.0.1 vs 192.168.1.2?
source
share