I want to run simple HTTP server on LAN to test it, how can I bind my local ip to this server so that everyone in the same LAN can see it?
addr = ("192.168.10.14", 8765)
srvr = HTTPServer(addr,RequestHandler)
I get this error :
error: [Errno 10049] The requested address is not valid in its context
try this:
addr = ("0.0.0.0", 8765)
Here is what i did:
import BaseHTTPServer
from SimpleHTTPServer import SimpleHTTPRequestHandler
addr = ("0.0.0.0", 8765)
serv = BaseHTTPServer.HTTPServer(addr, SimpleHTTPRequestHandler)
serv.serve_forever()
And got from an other machine:
192.168.1.2 - - [09/Nov/2010 22:26:09] "GET / HTTP/1.1" 200 -
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With