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.

  • WolfLink
    link
    fedilink
    English
    arrow-up
    1
    ·
    11 hours ago

    You’ll need to receive requests locally at the port your VPN assigns you for port forwarding. You’ll need to send your requests to the IP and port your VPN assigns you. The IP you tell your software to listen to might depend on the software, but 127.0.0.1 or 0.0.0.0 or localhost are all good guesses.