Results 1 to 9 of 9
  1. #1
    Where is Metla these days Chilling_Silence's Avatar
    Join Date
    Dec 2004
    Location
    Auckland
    Posts
    17,146

    Question Automatic IP configuration based on Wireless LAN for XP

    Hey all,

    So Im out & about a *lot* and when I am, Im always connecting via Wireless to the internet. Different places use different LAN settings.

    Basically its fine under Ubuntu, I just have a .sh script I run and it'll change my IP / route settings (DNS is always the same) but I have nothing like this for me when I reboot and fire up XP which allows me to quickly / easily say "Use this static IP" or "Try DHCP".
    Is there any app that'll do this?

    Cheers


    Chill.
    I mostly do Bitcoin & DigiByte things these days, feel free to say hi on Twitter: https://twitter.com/dgb_chilling

    Before you ask a question here, or before you get upset by a response, see here:
    http://www.catb.org/~esr/faqs/smart-...ons.html#intro

  2. #2
    Senior Member
    Join Date
    Dec 2004
    Posts
    2,703

    Default Re: Automatic IP configuration based on Wireless LAN for XP

    Can't you just set your wireless connection to obtain IP and DNS automatically.
    In properties of Internet protocol TCP/IP

  3. #3
    Unknown Device wratterus's Avatar
    Join Date
    Apr 2007
    Location
    Top of the South
    Posts
    12,338

    Default Re: Automatic IP configuration based on Wireless LAN for XP

    I know there's a way of making a batch file (or two batch files) to do that for you, but I'm not sure on how.
    Last edited by wratterus; 07-07-2008 at 11:50 AM.
    Microsoft: "You've got questions. We've got dancing paperclips."

  4. #4
    Where is Metla these days Chilling_Silence's Avatar
    Join Date
    Dec 2004
    Location
    Auckland
    Posts
    17,146

    Default Re: Automatic IP configuration based on Wireless LAN for XP

    The problem is if I go to 4 different places in 1 day, one requires a static IP of:
    192.168.1.X & a gateway of 192.168.1.254
    Another uses DHCP
    Another uses 192.168.123.X & a gateway of 192.168.123.2
    And at home, I have a static IP so the shares on this laptop are availlable to the rest of the family.

    DHCP just isnt an option unfortunately except for 1..
    I mostly do Bitcoin & DigiByte things these days, feel free to say hi on Twitter: https://twitter.com/dgb_chilling

    Before you ask a question here, or before you get upset by a response, see here:
    http://www.catb.org/~esr/faqs/smart-...ons.html#intro

  5. #5
    Senior Member
    Join Date
    Dec 2004
    Location
    Dunedin
    Posts
    855

    Default Re: Automatic IP configuration based on Wireless LAN for XP

    A program like NetSetMan http://www.netsetman.com/index.php?s=nsm
    or NetChanger http://www.freedownloadscenter.com/N...etChanger.html Haven't tried either though.

    I would use a script myself. Haven't used this either but I have the same problem at times and this would be the way I would try first. I might even try later in the day.

    Got the below from http://www.experts-exchange.com/Netw..._21639432.html

    Fatal_Exceptions answer is extremely thorough, and using the "dump" option is the better way to go.. However, if you want specific examples of netsh batch files, I have included 2 below. Both run then display current config and pauses for you to view. You can remove the last 2 lines. 1st is for static IP, second for DHCP. Substitute your values/IP's as necessary. The network connection name is assumed to be the default "Local Area Connection".

    ************************************************** *
    rem Reset network Settings for static IP
    netsh interface ip set address name = "Local Area Connection" source = static addr = 10.0.0.99 mask = 255.255.255.0
    netsh interface ip set address name = "Local Area Connection" gateway = 10.0.0.254 gwmetric = 1
    netsh interface ip set dns name = "Local Area Connection" source = static addr = 24.222.0.1
    netsh interface ip add dns name = "Local Area Connection" addr = 24.222.0.2
    netsh interface ip show config
    pause

    *************************************************

    rem Reset network settings for DHCP
    netsh interface ip set address name = "Local Area Connection" source = dhcp
    netsh interface ip set dns name = "Local Area Connection" source = dhcp
    netsh interface ip set wins name = "Local Area Connection" source = dhcp
    netsh interface ip show config
    pause

  6. #6
    Where is Metla these days Chilling_Silence's Avatar
    Join Date
    Dec 2004
    Location
    Auckland
    Posts
    17,146

    Default Re: Automatic IP configuration based on Wireless LAN for XP

    berryb, thanks that looks perfect!!

    Will mess around with it later tonight

    Cheers!
    I mostly do Bitcoin & DigiByte things these days, feel free to say hi on Twitter: https://twitter.com/dgb_chilling

    Before you ask a question here, or before you get upset by a response, see here:
    http://www.catb.org/~esr/faqs/smart-...ons.html#intro

  7. #7
    Misc. User of PressF1 somebody's Avatar
    Join Date
    Dec 2004
    Posts
    5,198

    Default Re: Automatic IP configuration based on Wireless LAN for XP

    Quote Originally Posted by Chilling_Silence View Post
    berryb, thanks that looks perfect!!

    Will mess around with it later tonight

    Cheers!
    When you enable DHCP on Windows XP, there's a tab along the lines of "Alternative IP configuration", where you can specify a static IP. That way, it'll try DHCP, and if it can't get an address, will revert to what you have set.
    Any views expressed here are my own and do not necessarily represent the views of my employer or any affiliated 3rd party.

  8. #8
    Where is Metla these days Chilling_Silence's Avatar
    Join Date
    Dec 2004
    Location
    Auckland
    Posts
    17,146

    Default Re: Automatic IP configuration based on Wireless LAN for XP

    Yeah the problem is on two of the LANs I use, it gets a DHCP address but using that IP range doesnt give you internet... so I *have* to manually override

    Tested that today berryb, worked brilliantly! Thanks!!
    I mostly do Bitcoin & DigiByte things these days, feel free to say hi on Twitter: https://twitter.com/dgb_chilling

    Before you ask a question here, or before you get upset by a response, see here:
    http://www.catb.org/~esr/faqs/smart-...ons.html#intro

  9. #9
    Senior Member
    Join Date
    Dec 2004
    Location
    Dunedin
    Posts
    855

    Default Re: Automatic IP configuration based on Wireless LAN for XP

    Great will have to try myself now!

Similar Threads

  1. Browser Based MMO
    By manvsmachine in forum PressF1
    Replies: 1
    Last Post: 28-07-2007, 11:18 PM
  2. Mac OS on PC-Based 'Puters
    By SurferJoe46 in forum PC World Chat
    Replies: 3
    Last Post: 14-08-2005, 03:05 PM
  3. Web based calendar
    By Rob99 in forum PressF1
    Replies: 8
    Last Post: 18-08-2004, 12:36 PM
  4. OT: Web-based Procreation
    By Billy T in forum PressF1
    Replies: 6
    Last Post: 12-08-2004, 12:58 PM
  5. Is there an automatic modem configuration script for linux?
    By smashedlittlebugger in forum PressF1
    Replies: 9
    Last Post: 04-02-2004, 08:31 PM

Posting Permissions

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