1. You are viewing our forum as a guest. For full access please Register. WindowsBBS.com is completely free, paid for by advertisers and donations.

Resolved DHCP Lease Renewal and Screen Saver Mode

Discussion in 'Networking (Hardware & Software)' started by gw1500se, 2015/02/06.

  1. 2015/02/06
    gw1500se

    gw1500se Well-Known Member Thread Starter

    Joined:
    2003/01/10
    Messages:
    444
    Likes Received:
    0
    I have a laptop that I need to access remotely. It has been giving me fits because it seems to lose its IP address or at least its dynamic DNS entry. I suspect it has to do with renewing its DHCP lease. When this happens and I wake the computer locally, the DNS entry suddenly reappears. After some testing, this condition seems to coincide with the DHCP lease expiration while the laptop is in screen saver mode. I have the laptop in a docking station so I've set it to never sleep and I have it set to wake when accessed via remote desktop. All that seems to work until the DHCP lease expires. So I think the question is how do I configure this thing, if possible, to wake and renew its DHCP lease? TIA.
     
  2. 2015/02/06
    rsinfo

    rsinfo SuperGeek Alumni

    Joined:
    2005/12/25
    Messages:
    4,076
    Likes Received:
    178
    Why don't give it a static IP ?
     

  3. to hide this advert.

  4. 2015/02/06
    gw1500se

    gw1500se Well-Known Member Thread Starter

    Joined:
    2003/01/10
    Messages:
    444
    Likes Received:
    0
    Not my decision to make. In any case that suggestion does not answer my question.
     
  5. 2015/02/06
    TonyT

    TonyT SuperGeek Staff

    Joined:
    2002/01/18
    Messages:
    9,072
    Likes Received:
    400
    The DHCP lease is not controlled by the laptop, it's controlled by the router. Most routers have a lease time setting.

    Best to use a static IP and/or manually set the DNS server address to the LAN IP address of the router.

    Also, why screensaver mode? LCD & LED screens do not need screensavers. Why not just logout?
     
  6. 2015/02/06
    rsinfo

    rsinfo SuperGeek Alumni

    Joined:
    2005/12/25
    Messages:
    4,076
    Likes Received:
    178
    Is this laptop used in home or office ? Office issues can be very hard to pinpoint as the IT administrator may have applied some restrictions.
     
  7. 2015/02/07
    gw1500se

    gw1500se Well-Known Member Thread Starter

    Joined:
    2003/01/10
    Messages:
    444
    Likes Received:
    0
    I understand the lease time is controlled by the DHCP server but if/when it is renewed at expiration time is controlled by the laptop. When the lease expires, is not another broadcast sent by the laptop and a new lease sent by the server? I'm thinking the solution is to create a scheduled task that does a ping or something every couple of hours to force a renewal.
     
  8. 2015/02/07
    TonyT

    TonyT SuperGeek Staff

    Joined:
    2002/01/18
    Messages:
    9,072
    Likes Received:
    400
    Unlike unix or linux systems, networking in Windows is about the last thing to load after logon. In linux, networking gets started and connected prior to logon.

    I have never ever run across an issue as you describe that was caused by the DHCP Client or DHCP server.

    I would check the power mgmt settings for the adapter, Windows may be turning it OFF when not in use.

    Check in the advanced power mgmt settings and also check in
    Device Manager > Network > rt click adapter > select Properties > Power Mgmt tab > the checkbox should be unchecked: Allow the comp to turn off this device to save power.
     
  9. 2015/03/20
    gw1500se

    gw1500se Well-Known Member Thread Starter

    Joined:
    2003/01/10
    Messages:
    444
    Likes Received:
    0
    None of these suggestions seem to work. I am thinking now that it may be a problem with the DNS/DHCP server.
     
  10. 2015/03/20
    elcajongunsfan Lifetime Subscriber

    elcajongunsfan Well-Known Member

    Joined:
    2012/01/01
    Messages:
    384
    Likes Received:
    14
    I think Tony stated it correctly--IP leasing is from the router. the host, your laptop, goes through four states--discovery (looking for an IP dhcp server) offer ( the Ip server offers an IP address) request (the host requests that IP address from whatever dhcp server is online--you can have many, not just one) acknowlegement (there's an agreement that the host will use that IP address) After that, the host sends out a broadcast making sure it ain't stealing somebody else's IP address

    I would go with static addressing also, but your problem seems kind of weird to me also.. On a local LAN, MAC addressing actually rules, so getting a mac address entry into the router's client list might help your problem
     
  11. 2015/03/21
    gw1500se

    gw1500se Well-Known Member Thread Starter

    Joined:
    2003/01/10
    Messages:
    444
    Likes Received:
    0
    I think I figured this out. There is a GPO that is supposed to send the IP address to the DynDNS server. That is not happening when a lease is renewed so the host name entry for the laptop is getting flushed but never renewed.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.