jeudi 29 décembre 2016

How to get create your real-work simple server on Python

I am writing simple app with using Python socket lib. I wrote a simple Server and Client. On my local computer is works. But I want to send Client app to my friend. The problem is here:

Server:
HOST = "127.0.0.1"
port = 3010
serverSocket.bind((HOST, port))

Client:
HOST = "127.0.0.1"
port = 3010
clientSocket.connect((HOST, port))

When this apps run on my local machine it is ok. But what HOST should be to make possible communicate with MY computer from other computer?




Aucun commentaire:

Enregistrer un commentaire