You are creating an instance of class Client with one argument
so the __init__ needs to be modified:
client = Client(sys.argv[1])And your Client class initialization is defined as:
class Client: def __init__(self): self.sock.connect((address, 10000))It seems you want to create the Client instance with the IP address
so the __init__ needs to be modified:
class Client: def __init__(self, address): self.sock.connect((address, 10000))