Re: python socket host='localhost' vs host=socket.gethostbyname(socket.geh

@8 If you s.bind(('localhost', 12345)) the server will only listen for connections on its loopback interface (only for internal machine use).
If you need to allow external clients to connect then you will want the s.bind(('', 12345)) version as it means to listen for connections on all IP addresses the server has available.

-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
  • ... AudioGames . net Forum — Developers room : bhanuponguru via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : bhanuponguru via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : bhanuponguru via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : thggamer via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : bhanuponguru via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : thggamer via Audiogames-reflector

Reply via email to