SBServerGetPrivateInetAddress
Returns the internal address of the SBServer, if any. For users behind a NAT or firewall, this is the local DHCP or assigned IP address of the machine.
- unsigned int SBServerGetPrivateInetAddress(
- SBServer server );
Routine | Required Header | Distribution |
---|---|---|
SBServerGetPrivateInetAddress | <sb_serverbrowsing.h> | SDKZIP |
Return Value
The private address of the SBServer, in string or integer form.
Parameters
- server
- [in] A valid SBServer object.
Remarks
When a client machine is behind a NAT or Firewall device, communication must go through the public address. The private address may be used by clients behind the same NAT or Firewall, and may be used to specifically identity two clients with the same public address. Often the private address is of the form "192.168.##.###" and is not usable for communication outside the local network.
The SBServer object may be obtained during the SBCallback from ServerBrowserUpdate, or by calling ServerBrowserGetServer. An SBServer object will only exist for servers in the list. IP addresses removed from the server list will not have an SBServer object associated.
Section Reference: Gamespy Server Browsing SDK
See Also: ServerBrowserNew, ServerBrowserUpdate, ServerBrowserGetServer