We should use Twisted endpoints here since that allows us to automatically support SSL and IPv6. See http://twistedmatrix.com/documents/current/api/twisted.internet.endpoints.html#serverFromString. The idea would be for the endpoint string to live in config instead of port.