Jump to content
  • Advertisement

Archived

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

Shannon Barber

Configuring TCP/IP

This topic is 5246 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
Advertisement
Perhaps you could use the following to get some of the information:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Adapters

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

Halo7

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

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!