from socket import * #naming socket sck1 = socket(AF_INET,SOCK_STREAM) #connect to device on port 23 sck1.connect(("192.168.2.1", 23))