getInetAddress获取主机名和IP地址 getLocalAddress()顾名思义,获取本地IP地址 getReuseAddress()返回布尔类型,表示复用地址 getLocalPort()API 的说明:“Returns the Internet Protocol (IP) port number of the interface on which the request was received. ”
getInetAddress获取主机名和IP地址 getLocalAddress()顾名思义,获取本地IP地址 getReuseAddress()返回布尔类型,表示复用地址 getLocalPort()API 的说明:“Returns the Internet Protocol (IP) port number of the interface on which the request was received. ”