Results 1 to 5 of 5

Thread: Quickly changing IP in Windows

  1. #1
    Frustrated Mad Scientist
    Join Date
    Dec 2004

    Quickly changing IP in Windows

    I've got a little 3 machine network on my desk so I play about with eEye Retina for evaluation.

    I'm changing the IPs quite frequently for hopping off and on the corp network.

    Just wondering if there is a quick way to change IP rather than going through the network settings windows.

    Like the ifconfig command in linux.


  2. #2
    Leftie Linux Lover the_JinX's Avatar
    Join Date
    Nov 2001
    Beverwijk Netherlands
    The windows version of ifconfig is ipconfig
    ASCII stupid question, get a stupid ANSI.
    When in Russia, pet a PETSCII.

    Get your ass over to SLAYRadio the best station for C64 Remixes !

  3. #3
    Frustrated Mad Scientist
    Join Date
    Dec 2004
    ifconfig lets you do a bit more.
    I can change IP in shell with

    ifconfig Eth0

    That would change my ip to the address there. It's a lot faster than going through menus.

    IPconfig just seems to display info or dump/renew the IP when it's allocated by a DNS.
    I was after a quick way to manually set the IP via the command line in windows.#

    Does IPconfig do that? My DOS is pretty poor.

  4. #4
    Junior Member
    Join Date
    Feb 2003
    Try "netsh" instead of "ipconfig" at your command prompt.

    This may be of use:

  5. #5
    Right turn Clyde Nokia's Avatar
    Join Date
    Aug 2003
    Button Moon
    Yep, ipconfig will dislpay any info you want about your connection and you can release / renew your ip address but only if you have a DHCP server running. You cant change your ip manually with ipconfig.

    The two ways I would probably do it is either:

    Double click on your connection monitors in your system tray > Properties > Internet Protocol (TCP/IP) > Properties and then select Use the following IP address and fill in the fields with the relevent information.

    The other way is to use netsh as has been sugested

    Open a comand prompt and type netsh you sould then get the netsh prompt.

    Then type the following:

    set address name="[Your connection name]" source=static addr=[your ip] mask=[Your mask] gateway=[your gateway]

    So it would look something like the following:

    set address name="Local Area Connection" source=static addr= mask= gateway=

    The benifit of this way is you can write a small batch file to allow you to do this pretty quickly, just double click on it and you away!

    Im sure there are other ways but these are just the two I use!

    You can find more info on netsh at Microsoft
    Drugs have taught an entire generation of kids the metric system.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts