peerGetPublicIP

GameSpy SDK

peerGetPublicIP

Returns the local public IP address.

unsigned intĀ peerGetPublicIP(
PEER peer );
RoutineRequired HeaderDistribution
peerGetPublicIP<peer.h>SDKZIP

Return Value

Returns the local public IP address.

Parameters

peer
[in] Initialized peer object.

Remarks

The peerGetPublicIP function returns the local public IP address. If called while not connected, will return 0. The IP this returns is the externally visible IP (e.g. for NATs).

Section Reference: Gamespy Peer SDK

See Also: peerGetPrivateIP