MCPcopy Create free account
hub / github.com/DOSNetwork/core / GetExternalAddress

Method GetExternalAddress

p2p/nat/nat.go:30–30  ·  view source on GitHub ↗

GetExternalAddress returns the external address of the gateway device.

()

Source from the content-addressed store, hash-verified

28
29 // GetExternalAddress returns the external address of the gateway device.
30 GetExternalAddress() (addr net.IP, err error)
31
32 // GetInternalAddress returns the address of the local host.
33 getInternalAddress() (addr net.IP, err error)

Callers 3

CreateP2PNetworkFunction · 0.65
discoverNATPMPWithAddrFunction · 0.65
GetExternalAddressMethod · 0.65

Implementers 2

uPnPNATp2p/nat/upnp.go
natpmpNATp2p/nat/natpmp.go

Calls

no outgoing calls

Tested by

no test coverage detected