Jump to content
  • Advertisement


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

Shannon Barber

Configuring TCP/IP

This topic is 5424 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

I really want to be able to change the ip address, subnet mask, and default route from my program. I''ve pretty much figured out how to do this under Linux, but would like it to work under NT (at least XP) as well. Does anyone know how you even look-up the subnet mask and default route from code?

Share this post

Link to post
Share on other sites
Perhaps you could use the following to get some of the information:


In there there will be a key for each adapter and will contain an IpConfig value which points to a key in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces

Should give you lots of information about the TCP/IP settings for the adapter.

edit: Perhaps the correct way: IPHelper


[edited by - Halo7 on January 14, 2004 12:45:37 AM]

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!