peerGetPrivateIP

GameSpy SDK

peerGetPrivateIP

Returns the local private IP address.

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

Return Value

Returns the local private IP address.

Parameters

peer
[in] Initialized peer object.

Remarks

The peerGetPrivateIP function returns the local private IP address. If called while not connected, or if there is no private address, will return 0. A private address is any local IP in a private IP range. The IP masks for these ranges (as specified in RFC 1918) are 10.*, 172.16-31.*, and 192.168.*.

Section Reference: Gamespy Peer SDK