Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Changing static IP address programatically

Changing static IP address programatically

Scheduled Pinned Locked Moved C / C++ / MFC
c++windows-adminhelpquestionannouncement
7 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    vivekphlp
    wrote on last edited by
    #1

    I need to change the static IP address of a machine programatically.I tried to change the IP at Registry location , HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces. But this change is taking effect only after restart of the computer. Is there any method to change IP without restart of the computer ? I tried AddIpAddress() function it shows some problem in version compatibility. I am using Visual C++ 6.0.

    Proud To Be an Indian

    R N H V 4 Replies Last reply
    0
    • V vivekphlp

      I need to change the static IP address of a machine programatically.I tried to change the IP at Registry location , HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces. But this change is taking effect only after restart of the computer. Is there any method to change IP without restart of the computer ? I tried AddIpAddress() function it shows some problem in version compatibility. I am using Visual C++ 6.0.

      Proud To Be an Indian

      R Offline
      R Offline
      rp_suman
      wrote on last edited by
      #2

      Hi, I Hope this answer give you some idea: Change IP address[^] Thanks, Suman

      -- "Programming is an art that fights back!"

      1 Reply Last reply
      0
      • V vivekphlp

        I need to change the static IP address of a machine programatically.I tried to change the IP at Registry location , HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces. But this change is taking effect only after restart of the computer. Is there any method to change IP without restart of the computer ? I tried AddIpAddress() function it shows some problem in version compatibility. I am using Visual C++ 6.0.

        Proud To Be an Indian

        N Offline
        N Offline
        Nibu babu thomas
        wrote on last edited by
        #3

        vivekphlp wrote:

        I tried AddIpAddress() function it shows some problem in version compatibility. I am using Visual C++ 6.0.

        Can you try this -> http://nibuthomas.wordpress.com/2007/10/13/changing-ip-address-of-a-machine/[^]

        Nibu thomas Microsoft MVP for VC++ Code must be written to be read, not by the compiler, but by another human being. Programming Blog: http://nibuthomas.wordpress.com

        V 1 Reply Last reply
        0
        • V vivekphlp

          I need to change the static IP address of a machine programatically.I tried to change the IP at Registry location , HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces. But this change is taking effect only after restart of the computer. Is there any method to change IP without restart of the computer ? I tried AddIpAddress() function it shows some problem in version compatibility. I am using Visual C++ 6.0.

          Proud To Be an Indian

          H Offline
          H Offline
          Hamid Taebi
          wrote on last edited by
          #4

          Did you search on the codeproject?

          1 Reply Last reply
          0
          • V vivekphlp

            I need to change the static IP address of a machine programatically.I tried to change the IP at Registry location , HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces. But this change is taking effect only after restart of the computer. Is there any method to change IP without restart of the computer ? I tried AddIpAddress() function it shows some problem in version compatibility. I am using Visual C++ 6.0.

            Proud To Be an Indian

            V Offline
            V Offline
            vivekphlp
            wrote on last edited by
            #5

            Sorry Guys, This post was done by my bro & he is now out of station. He did searched in CP but was not successful in getting the desired result. He will be back within 2 days. Thanks for the replies

            Proud To Be an Indian

            1 Reply Last reply
            0
            • N Nibu babu thomas

              vivekphlp wrote:

              I tried AddIpAddress() function it shows some problem in version compatibility. I am using Visual C++ 6.0.

              Can you try this -> http://nibuthomas.wordpress.com/2007/10/13/changing-ip-address-of-a-machine/[^]

              Nibu thomas Microsoft MVP for VC++ Code must be written to be read, not by the compiler, but by another human being. Programming Blog: http://nibuthomas.wordpress.com

              V Offline
              V Offline
              vivekphlp
              wrote on last edited by
              #6

              When I try to include "iphlpapi.h" it shows some error inside visual C++, not in my program.It says some stucture inside iphlpapi.h is undefined.

              Proud To Be an Indian

              N 1 Reply Last reply
              0
              • V vivekphlp

                When I try to include "iphlpapi.h" it shows some error inside visual C++, not in my program.It says some stucture inside iphlpapi.h is undefined.

                Proud To Be an Indian

                N Offline
                N Offline
                Nibu babu thomas
                wrote on last edited by
                #7

                vivekphlp wrote:

                When I try to include "iphlpapi.h" it shows some error inside visual C++, not in my program.It says some stucture inside iphlpapi.h is undefined.

                Do you have latest platform SDK installed!

                Nibu thomas Microsoft MVP for VC++ Code must be written to be read, not by the compiler, but by another human being. Programming Blog: http://nibuthomas.wordpress.com

                modified on Tuesday, April 15, 2008 5:09 PM

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups