1

I've set up a web server on a Linux machine on port 8000, using:

python -m SimpleHTTPServer 8000

If I run curl -XGET '127.0.0.1:8000' I get a response. But if I try accessing it on a browser in a different machine using http://domain:8000, I get no response.

How can I make it work outside the local network?

bmpasini
  • 1,503
  • 1
  • 23
  • 43
  • possible duplicate of [Connecting to Local Web Server when I am Outside my LAN](http://stackoverflow.com/questions/7404699/connecting-to-local-web-server-when-i-am-outside-my-lan) – tanaydin Jul 27 '15 at 16:05

1 Answers1

4

You should add port redirect from your router (adsl modem, switch, hub) to your computer. Or you can use ngrok (https://ngrok.com/) for such as things.

tanaydin
  • 5,171
  • 28
  • 45