# socket, bind, listen, accept from socket import * from struct import pack from sys import argv port = 5177 if(len(argv) > 1): port = int(argv[1]) skt = socket(AF_INET, SOCK_STREAM); skt.bind(("0.0.0.0", port)) skt.listen(5) print(skt) while(1): cskt, caddr = skt.accept() print(caddr) version_format_string = "