Simple Server With Python

Step 1
Prepare the computer that will be used as a server. IP instance my laptop which would be used as the server is 192.168.1.105

Step 2
Open terminal and type

Code:
python -m SimpleHTTPServer 3124

if the result like this

Means the server has been running well.

Port 3124 may be substituted as much as long as its port is not used by another service.

Step 3
Furthermore, we can access its server using other computers (in a network). by typing in the browser:

192.168.1.105:3124

I access the server as a client from another computer with the client IP 192.168.1.106

server displays the directory where we start to enable python,for example I show the root directory.

Once I access the server from another computer then the terminal will display something.

Server displays the client IP 192.168.1.106 has access to the 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

Digital Hacker

Digital Hacker

StormSecurity

IT Security Research and Services

govolution

About assembler and stuff

Astr0baby's not so random thoughts _____ rand() % 100;

ψυχῆς ἰατρεῖον "Hospital of the soul"

Penetration Testing Academy

Education and Advice for Rookies

P.M.C.S.P. Blog

Articles about Physics, Math, Computer Security & Programming and more

%d bloggers like this: