Python serve current directory with http

 

To server current directory with http to share are browse from http use following command

$ python -m SimpleHTTPServer 8080

Output:

Serving HTTP on 0.0.0.0 port 8080 …

You change port ash you wish, here I use port 8080.

After starting HTTP Server open url http://127.0.0.1:8080, this will list all files and folders in directory where you started HTTP Server

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s