Change from telnet sockets to raw sockets