1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Obtaining IP address automatically.

Discussion in 'Networking' started by cartmage, Sep 5, 2007.

Thread Status:
Not open for further replies.
Advertisement
  1. cartmage

    cartmage Thread Starter

    Joined:
    Sep 5, 2007
    Messages:
    3
    Greetings!,
    I have found many of your forum posts very handy and I was wondering if you could give me any advice on a “easy button” fix for my brother-in-law’s Laptop.

    He is a trucker and has subscriptions to a few different wireless services at truck stops, unfortunately some of them, when he connects, run a script or something that set specific IP address and DNS for him. When he goes to the next truck stop, it won’t always connect to the new place’s network until he resets his connection to “obtain IP automatically”.

    I was wondering if there was perhaps a way to write a command line shortcut to reset the TCP/IP v4 back to Auto Obtain, that way he can just click an icon instead of having to open the properties. (He isn’t the most computer savvy person and I have had to talk him through it a few times now.)

    I figured that way next time he is home I can just set it up for him to save us both a huge headache.

    Thanks alot in advance for any ideas!
     
  2. Frank4d

    Frank4d Trusted Advisor

    Joined:
    Sep 10, 2006
    Messages:
    9,126
    Paste the two lines below into Notepad and save a file on his desktop as "set_dhcp.bat". It creates a batch file that when run, will cause the PC to be set to automatically obtain an IP.

    Code:
    netsh interface ip set address name="Local Area Connection" source=dhcp
    netsh interface ip set dns name="Local Area Connection" source=dhcp
    Note: The connection name in your file must match the name displayed for it in his Network Connections window.
     
  3. cartmage

    cartmage Thread Starter

    Joined:
    Sep 5, 2007
    Messages:
    3
    Thank you VERY much!
     
As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Loading...
Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/619855