0

I am testing some python functionalities as web server. Typed :

$ python -m SimpleHTTPServer 8080

...and setup port forwarding on router to this 8080. I can access via web with http://my.ip.adr.ess:8080/, whereas my.ip.adr.ess stands for my IP adress.

When I started my xampp server it is accessible with http://my.ip.adr.ess/ and no 8080 port is required for accessing.

What should I have to do to python server responds like that?

Alex
  • 3,167
  • 6
  • 35
  • 50

2 Answers2

2

It means that xampp is running on port 80 which is default for http://. You need to run SimpleHTTPServer on that port too. More info about running SimpleHTTPServer on port 80.

Community
  • 1
  • 1
Paweł Piecyk
  • 2,749
  • 15
  • 17
  • And thats it !!!! I thought that 8080 stands for 80 start and 80 ending port.... Of course, it worked immediately. – Alex Jan 12 '14 at 08:55
1

Specify the port as 80 (default port for HTTP protocol).

python -m SimpleHTTPServer 80

You may need superuser permission in Unix to bind port 80 (under 1024).

sudo python -m SimpleHTTPServer 80
falsetru
  • 357,413
  • 63
  • 732
  • 636