from twisted.manhole import telnet f = telnet.ShellFactory() test = internet.TCPServer( port = 6023, factory = f ) test.setServiceParent( application )