I am trying to play my unity game from 2 computers (one is the server(python) and one is the client(unity and C#)), but when I try to connect the unity console shows me this error:
“SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.”
can you help me figure this out?
this is the client c# code(unity):
socket my_socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
IPEndPoint endPoint = new IPEndPoint(IPAddress.Parse("192.168.43.95"), 7770);
my_socket.Connect(endPoint);
this my serever code(python):
import socket
my_socket = socket.socket()
my_socket.bind(('0.0.0.0', 7770))
my_socket.listen(5)
(client_socket, client_address) = my_socket.accept()
print str(client_address)+" is connected"