Revert "Get port in thrift_server."

This reverts commit a6b31b370ba8cc8e04779c5feeed93b85366c86e.