import socket a=socket.socket(family=socket.AF_INET,type=socket.SOCK_DGRAM) a.bind(("135.125.239.22",0x2357)) while(True): b=a.recvfrom(1024) print(b[0]) print(b[1]) a.sendto(str.encode("HelloClient"),b[1]) a.sendto(str.encode("HelloClient"),b[1])