boundSocket.address()


返回绑定的本地地址。当与 port: 0 绑定时,port 是操作系统分配的临时端口。

🌐 Returns the bound local address. When bound with port: 0, port is the OS-assigned ephemeral port.