Jump to content
  • Advertisement


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


DirectPlay - IP address

This topic is 6009 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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
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

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!