Socket? python -m SimpleHTTPServer

Problem: to get the command working here. My domain is http://cs.edu.com/user/share_dir, but I cannot get the command working by typing it to a browser:

http://cs.edu.com/user/share_dir:8000

Question: How can I get the command working?

Upvotes: 3

Views: 839

Answers (1)

Andre Miller
Andre Miller

Reputation: 15493

Your URL is incorrect. The port number should be specified after the domain name:

http://cs.edu.com:8000/

Some other things you should keep in mind:

  1. If this is a shared host, port 8000 might already be in use by someone else
  2. The host might not be accessible from 'outside' of the network, due to firewall restrictions on non-standard ports
  3. The system you see internally could map to a different system outside, so the domain/hostname could be different from what you expect.

Upvotes: 5

Related Questions