Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Web.py "Hello world" not working - ERR_ADDRESS_INVALID

Tags:

python

web.py

I'm trying to get the "Hello World" example for Web.py working and it's giving me an error:

enter image description here


enter image description here


This person seemed to be having the same issue in 2011 and the sole response suggested it might be a firewall issue. I have tried setting a new port as described here and it made no difference. I know that the new port I tried (5000) is not blocked by any firewall on my computer, so this isn't a firewall issue.

like image 916
Nathan Wailes Avatar asked Dec 03 '25 09:12

Nathan Wailes


2 Answers

0.0.0.0 is the IP address is bound to. Your server will be reachable on every interface of your machine on any of the IP addresses that your computer has been assigned.

To contact the server, you need to specify its actual IP address. 0.0.0.0 is not a valid IP address. For instance, if the server runs on your local machine, try http://127.0.0.1:8080/ .

like image 88
phihag Avatar answered Dec 04 '25 23:12

phihag


You can't visit 0.0.0.0, that just means your server is listening on all addresses. You need to visit localhost, ie 127.0.0.1.

like image 29
Daniel Roseman Avatar answered Dec 04 '25 21:12

Daniel Roseman



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!