N
N
NickBetali2015-02-23 14:17:50
Python
NickBetali, 2015-02-23 14:17:50

How to set up a local python server on mac OS X?

In the console I enter python -m SimpleHTTPServer
further I open the page for example

http://localhost:8000/Google%20Drive/CoffeeTalk/#close

or
http://127.0.0.1:8000/Google%20Drive/CoffeeTalk/
everything works.
how to open on another laptop (Windows) or mobile device that use the same network?
I put my IP in and nothing works.
Thanks in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Valeriy Solovyov, 2015-02-23
@NickBetali

You need to find out the IP of your computer and go to it. It seems that by default your server will be on all IPs:

#python -m SimpleHTTPServer 8000
Serving HTTP on 0.0.0.0 port 8000 ...
Mac OS X (10.4) - Finding the IP address and MAC a...
Mac OS X (10.5.x, 10.6.x, 10.7.x, 10.8.x, 10.9.x, ...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question