I’ve been able to set up sending and listening to http requests locally using 127.0.0.1:8000. I want to try doing it using the internet now.

I have a VPN with port forwarding enabled, but sending requests to that IP address and port does not yield a response like it did when doing it locally.

Can anyone clarify which address I should be listening on in order to receive http requests from the internet? I tried 0.0.0.0 and a few inet addresses from ip add, but none of them work.

  • @[email protected]
    link
    fedilink
    English
    11 day ago

    Should I only listen on my external IP? I’m not sure the OP wants to get into local server firewall rules here…

    • Archy
      link
      English
      16 hours ago

      0.0.0.0 should do the trick, unless of course a firewall in between blocks any requests. Port 80 should be open on the router to accept http requests, there might be other firewalls on the computer for example…