Problem resetting WAN IP

Discussion in 'Computer Games and General Discussion' started by juggernaut911, Aug 3, 2010.

  1. juggernaut911
    OP

    juggernaut911 GBAtemp Slut!

    Member
    4,153
    21
    Jul 13, 2006
    United States
    So, I'd SSH into my router, stop then start the WAN process, but still have same WAN IP address. Is there a fool-proof way to do this?

    My script that doesn't do anything.
    "plink.exe" is just the ssh client
    "-load router" is the profile to load (has login name and key)
    Code:
    plink.exe -load router stopservice wan
    plink.exe -load router startservice wan
    Please and thank you!
    (Router: WRT150N)
    (Firmware: DD-WRT v24-sp1 (07/27/08) mini)
     
  2. Originality

    Originality Chibi-neko

    Member
    5,341
    780
    Apr 21, 2008
    London, UK
    If I recall, WAN is set by the ISP, not by the user. You can either have a static IP that never changes, or a dynamic IP that changes every time your router has to re-establish connection to the ISP.
     
  3. Costello

    Costello Headmaster

    Administrator
    12,393
    5,640
    Oct 24, 2002
    for some ISPs a new IP address is affected to you every 24 hours or more
    so no matter how many times you reconnect, you'll have the same IP
    try and wait one more day?
     
  4. juggernaut911
    OP

    juggernaut911 GBAtemp Slut!

    Member
    4,153
    21
    Jul 13, 2006
    United States
    and thank you.


    I'll try tomorrow to see. I would power cycle the modem but that didn't help.
     
  5. Am0s

    Am0s Mojo Risin

    Member
    741
    0
    Jul 9, 2009
    England
    as the above poster said you will either get a static or a dynamic or in some cases a semi dynamic IP, generally the IP has a lease time and when that expires, your router will gain another IP from their pool of IP's I am on ADSL2 and supposed to have a dynamic IP, but even after moving house and the internet being disconnected and reconnected to the new house I still have the same IP, so really if you leave your router off for 24hrs+ you might get a new IP, or in some cases you might still get the same on, it all depends on the ISP and their lease times
     
  6. Originality

    Originality Chibi-neko

    Member
    5,341
    780
    Apr 21, 2008
    London, UK
    A neighbour of mine forces himself to get a new IP (after being locked out of router controls by his parents) by giving himself a DOS attack. It's useful when he needs to bypass controls placed on download sites like megaupload.
     
  7. how_do_i_do_that

    how_do_i_do_that Blue Wizard is about to die.

    Member
    4,919
    256
    May 16, 2008
    Antarctica
    You have insufficient posts to view location.
    To force reset your WAN IP address manually:

    If your on windows, you have to be connected directly to the modem then you type in a cmd window

    ipconfig /renew
    This is for IP4 address (any windows version)

    ipconfig /renew6
    This is for IP6 address (windows vista & 7)

    If you have a static ip address, this will not work.
     
  8. Coto

    Coto GBAtemp Addict

    Member
    2,353
    403
    Jun 4, 2010
    Chile
    WAN IP`s are dictated by ISP providers. IPCONFIG forces to do it, but from a local network considering you may have a router.

    So, those options given by both first users, including admin, seem to be more plausible.
     
  9. Elritha

    Elritha GBAtemp Addict

    Member
    2,037
    1
    Jan 24, 2006
    Canada
    Sometimes ip addresses are also tied into the mac address of the router/modem. You could try changing your routers mac address to see if that helps.
     
  10. how_do_i_do_that

    how_do_i_do_that Blue Wizard is about to die.

    Member
    4,919
    256
    May 16, 2008
    Antarctica
    You have insufficient posts to view location.
    US internet providers do crap differently, they all give you dynamic IP addresses which you can force a change.

    You can't get a static IP address unless you want to shell out 500 bucks or more a month.
     
  11. Rydian

    Rydian Resident Furvert™

    Member
    27,883
    8,108
    Feb 4, 2010
    United States
    Cave Entrance, Watching Cyan Write Letters
    how_do_i_do_that, that will only change your computer's IP, not the router's. Also the way many ISPs work it's not abnormal to keep the same IP for weeks or months at a time even if you have a dynamic IP.

    OP, you will want to find with the DHCP lease from your ISP is expiring (as said it's usually every 24 hours) and keep the router disconnected at that time so when ti reconnects you're hopefully given a new one. If you disconnect and reconnect within the same DHCP lease period the IP will stay the same, even if you waited 23 hours, you have to pass that specific reset time.
     
  12. how_do_i_do_that

    how_do_i_do_that Blue Wizard is about to die.

    Member
    4,919
    256
    May 16, 2008
    Antarctica
    You have insufficient posts to view location.
    What part of "you have to be plugged directly to the modem" didn't you understand. When your plugged directly to the modem, your ip address is the WAN address.

    This is how people on WoW unban themselves from temp bans that are ip related.
     
  13. Rydian

    Rydian Resident Furvert™

    Member
    27,883
    8,108
    Feb 4, 2010
    United States
    Cave Entrance, Watching Cyan Write Letters
    Oh, I missed that part.

    I can't wait for IPv6 and fully static IPs.
     
  14. juggernaut911
    OP

    juggernaut911 GBAtemp Slut!

    Member
    4,153
    21
    Jul 13, 2006
    United States
    What benefit will that bring?
     
  15. Frederica Bernkastel

    Frederica Bernkastel WebPerf and PWA advocate; @antoligy on Twitter

    Member
    GBAtemp Patron
    Frederica Bernkastel is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    3,154
    765
    Jan 31, 2008
    United Kingdom
    Hinamizawa
    Both are already around.
    It'll mean that more people can be on the internet at once, as well as meaning that AAAA records will replace A records.
     
  16. Rydian

    Rydian Resident Furvert™

    Member
    27,883
    8,108
    Feb 4, 2010
    United States
    Cave Entrance, Watching Cyan Write Letters
    My hope is that IPv6, when it comes into full swing (as in, fully replacing v4) will allow ISPs to just set static IPs and be done with it since there's no need to shuffle shit around to make up for how little slack there is.

    Then maybe people will be on better behavior since you can't just reconnect for an IP change.