server.address()


返回操作系统报告的绑定地址、地址族名称和服务器端口。 有关详细信息,请参阅 net.Server.address()

Returns the bound address, the address family name, and port of the server as reported by the operating system. See net.Server.address() for more information.