Doel
2013-09-02, 08:32
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
python -m SimpleHTTPServer 3124
if the result like this
http://i1089.photobucket.com/albums/i341/Abdullah3112/Membuat%20server%20python/1_zps47adb5a4.png
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
http://i1089.photobucket.com/albums/i341/Abdullah3112/Membuat%20server%20python/3_zps2b976ea1.png
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.
http://i1089.photobucket.com/albums/i341/Abdullah3112/Membuat%20server%20python/2_zps932b2dab.png
Server displays the client IP 192.168.1.106 has access to the server.
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
python -m SimpleHTTPServer 3124
if the result like this
http://i1089.photobucket.com/albums/i341/Abdullah3112/Membuat%20server%20python/1_zps47adb5a4.png
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
http://i1089.photobucket.com/albums/i341/Abdullah3112/Membuat%20server%20python/3_zps2b976ea1.png
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.
http://i1089.photobucket.com/albums/i341/Abdullah3112/Membuat%20server%20python/2_zps932b2dab.png
Server displays the client IP 192.168.1.106 has access to the server.