Typically your desktop machine has one IP address (often assigned to it via DHCP), and it also has a loopback IP address (127.0.0.1). But it could have more IP interfaces, too. If your application is running on 0.0.0.0:8080, what that really means is that it will respond to any incoming traffic on port 8080, regardless of which IP interface the traffic comes in on. It doesn't make sense to point your web browser at 0.0.0.0, because your browser is initiating the connection, and must talk to one of the specific IP interfaces on your computer. 0.0.0.0 is not a specific interface, but is essentially *all* interfaces on the computer. Browsing 127.0.0.1 will always only talk to your own computer (loopback), but you could also point your browser at 192.168.0.2, or whatever your compter's assigned IP address is, and your webapp listening on 0.0.0.0 will respond.
Pete On Mon, Jun 6, 2011 at 9:08 PM, Jesramz <[email protected]> wrote: > Yes! http://127.0.0.1:8080/ did work. But Why, why not http://0.0.0.0:8080/ > ? What happened here,If you dont mind ? > > > On Jun 6, 10:47 pm, Pete Emerson <[email protected]> wrote: >> What if you go tohttp://127.0.0.1:8080/ ? >> >> Alternatively, open another terminal and use curl: >> >> curlhttp://127.0.0.1:8080 >> >> or wget: >> >> wget -q -O -http://127.0.0.1 >> >> >> >> >> >> >> >> On Mon, Jun 6, 2011 at 8:31 PM, Jesramz <[email protected]> >> wrote: >> > I seehttp://0.0.0.0:8080/and nothing else. When I run this in the >> > browser it says the page is not available. >> >> > On Jun 6, 8:54 pm, Anand Chitipothu <[email protected]> wrote: >> >> 2011/6/6 Jesramz <[email protected]>: >> >> >> > I just installed web.py, followed the tutorial and made a code.py. I >> >> > ran the server from the command prompt but it doesn't work. Chrome >> >> > says the page is not available even though I followed the tutorial. >> >> > Does web.py need to go on the path in the environment variables like >> >> > Django does? I also have Django installed, might it be causing web.py >> >> > to not work properly? >> >> >> What you see at the command prompt after you run the server? >> >> > -- >> > You received this message because you are subscribed to the Google Groups >> > "web.py" group. >> > To post to this group, send email to [email protected]. >> > To unsubscribe from this group, send email to >> > [email protected]. >> > For more options, visit this group >> > athttp://groups.google.com/group/webpy?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "web.py" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/webpy?hl=en. > > -- You received this message because you are subscribed to the Google Groups "web.py" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/webpy?hl=en.
