Skip to content

Latest commit

 

History

History
26 lines (26 loc) · 946 Bytes

File metadata and controls

26 lines (26 loc) · 946 Bytes

Multithreaded-Webserver-and-Client

Environment

  1. Python 2.7.10
  2. Mozilla firefox 41.0.2
  3. Windows command prompt
  4. 8080 is the default port Files
  5. webserver.py (Server code)
  6. client.py(Client side code)
  7. test.html (used as the test file)
  8. All the files are in the same folder Running webserver.py on command prompt
  9. webserver.py <port_no> (In the localhost ip creates the <port_no> & listens for clients)
  10. webserver.py (In the localhost ip creates the 8080 as default port & listens for clients) Running webserver.py on phyton IDE
  11. On Python 2.7.10 IDE -> open module->f5 or run Testing in browser
  12. http://127.0.0.1:8080/test.html
  13. http://localhost:8080/test.html
  14. If file name is different 404 is sent Running client.py on command prompt
  15. client.py 127.0.0.1 test.html
  16. client.py localhost test.html
  17. client.py localhost test.html
  18. wrong file name gives a 404
  19. wrong port number raises an error