Returns the bound address, the address family name and port of the socket as reported by the operating system:{ port: 12346, family: 'IPv4', address: '127.0.0.1' }
Socket.address method | Node.js net module | Bun BuildDocsReferenceGuidesBlogDiscord/node:net/Socket/addressMaddress BuildDocsReferenceGuidesBlogDiscord /node:net/Socket/addressMaddress net.Socket.addressaddress(): {} | AddressInfo; Referenced typesinterface AddressInfoaddress: stringfamily: stringport: number
Search the reference...
/
method
Resources
ReferenceDocsGuidesDiscordMerch StoreGitHubBlogToolkit
RuntimePackage managerTest runnerBundlerPackage runnerProject
Bun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicenseBaked with ❤️ in San Francisco
We're hiring →Socket.address method | Node.js net module | Bun,AI智能索引,全网链接索引,智能导航,网页索引
- API documentation for method node:net.Socket.address | Bun