Like Tree2Likes
  • 2 Post By Elkvis

Change Network Configuration using win32 VC++

This is a discussion on Change Network Configuration using win32 VC++ within the C++ Programming forums, part of the General Programming Boards category; I want to change my system IP, subnet mask, host name etc. using win32 VC++. I've tried AddIPAddress function but ...

  1. #1
    Registered User
    Join Date
    Jan 2013
    Posts
    15

    Change Network Configuration using win32 VC++

    I want to change my system IP, subnet mask, host name etc. using win32 VC++.
    I've tried AddIPAddress function but that's not persistent.
    I want to change it that it should be change without rebooting system and should be there after restarting the system.
    Thanks!

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,548
    Why do you need to do this?

    It's not like you can pretend to everyone that you're Google or anything.

    If you're on any kind of network, your IP address is usually assigned by some DHCP server.
    Dynamic Host Configuration Protocol - Wikipedia, the free encyclopedia

    If you control such a thing (say your router), then you should be able to configure it to give you whatever local subnet IP address you want.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  3. #3
    Registered User
    Join Date
    Jan 2013
    Posts
    15
    Why do you need to do this?
    is this the way you answer a question?
    It's not like you can pretend to everyone that you're Google or anything.
    this is the way you are helping others on forum. If you don't know the answer why you always try to answer that.

  4. #4
    Registered User
    Join Date
    Oct 2006
    Posts
    2,421
    Quote Originally Posted by NetCoder View Post
    is this the way you answer a question?

    this is the way you are helping others on forum. If you don't know the answer why you always try to answer that.
    this is the way a question gets answered when you're asking to do something that's potentially dangerous. taking control of IP addresses is something that is often done by malware. we don't just hand out answers like that here on the forum. Salem was trying to understand the problem you are trying to solve, so that a proper solution could be provided. if you want people to help you, you need to stop pretending that you're so important that the rules don't apply to you.
    Elysia and stahta01 like this.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Network queston for users with mixed OS on their network...
    By CommonTater in forum Networking/Device Communication
    Replies: 8
    Last Post: 09-10-2011, 08:56 PM
  2. DCOM configuration
    By George2 in forum Tech Board
    Replies: 0
    Last Post: 02-14-2008, 05:58 AM
  3. Vim configuration woes
    By OnionKnight in forum Tech Board
    Replies: 0
    Last Post: 04-02-2007, 06:33 PM
  4. Replies: 11
    Last Post: 10-24-2004, 10:28 AM
  5. Replies: 0
    Last Post: 10-23-2002, 08:45 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21