so im trying to establish connection between my friends pc and my pc but it keeps saying the host failed to respond this is the client
import socket
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect(("192.168.0.177", 1234))
msg = s.recv(1024)
print(msg.decode("utf-8"))
and this is the server
import socket
s = socket.socket(socket.AF_INET
, socket.SOCK_STREAM)
s.bind(('192.168.0.177', 1234))
s.listen(5)
while True:
clientsocket, address = s.accept()
print(f'conection from {address} has bene establish')
clientsocket.send(bytes("welcome to the server", "utf-8"))
Update/Edit so i tried my public IP address and it says WinError 10049] The requested address is not valid in its context the error is serverside