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

hello all, i want to get clarity.
which is best to use. say i will run my server on my computer and another copy of server in a windows vps. then i should use host='localhost' or host=socket.gethostbyname(socket.gethostname()) or host=socket.gethostname().
what should i use. i dont want to change server again and again each time i change my vps. so what is best to use.

-- 
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