Archived

This topic is now archived and is closed to further replies.

Crunchy

DirectPlay - IP address

Recommended Posts

Crunchy    122
Is there a way to get the IP address of the computer you are using through directPlay? If not, whats the easiest way to get it using anything else?

Share this post


Link to post
Share on other sites
wkhuff    122
This is from the DirectX 8.1 SDK Help

DirectPlay Addressing
To deliver messages, each participant in a multiplayer game must have a unique address. Addresses can refer to either the computer on which your application is running (device address) or a computer with which your application needs to communicate (host address).

Microsoft® DirectPlay® 8.1 represents addresses in the form of a URL string. The address string is then encapsulated in a DirectPlay address object that is passed as a parameter in or out of methods such as IDirectPlay8Peer::Connect.

This section describes three ways of handling DirectPlay addresses.

DirectPlay URLs discusses how to construct the address string directly.
Handling Addresses discusses how to pass address objects in the Host, EnumHosts, or Connect methods.
DirectPlay Address Objects discusses how to manipulate the address string using the methods exposed by the address object''s IDirectPlay8Address interface.

Share this post


Link to post
Share on other sites