from twisted.internet import reactor, protocol
PORT = 9000


class MyServer(protocol.Protocol):
    pass


class MyServerFactory(protocol.Factory):
    protocol = MyServer
factory = MyServerFactory()
reactor.listenTCP(PORT, factory)
reactor.run()
Twisted server for multiple clients