1

I have computer connected to internet directly. But once every hour IP changes and I do not want that for sure. How can I set IP lease time for like a year or so?

Thank you

2 Answers 2

3

You don't control this. Lease time is set by the DHCP servers of your ISP.

You can try calling them and asking for a static address. Some ISPs will accommodate you for a small fee.

11
  • Howcome with connected router to modem IP was the same for like a year?
    – DanSpd
    Jun 8, 2010 at 0:28
  • @DanSpd - Your internal IP was the same because that was handled by your router, your external IP (the one used by the router's WAN interface) most likely changed just as frequently. This was transparent to you.
    – MDMarra
    Jun 8, 2010 at 0:30
  • Actually my WAN ip was the same for one year with router installed. And I am pretty sure about that.
    – DanSpd
    Jun 8, 2010 at 0:35
  • @DanSpd - Then there was a change in your ISP that just happened to coincide with you getting rid of your router. There is absolutely no way for a client to influence lease time from a DHCP server, whether that client be a router or a computer.
    – MDMarra
    Jun 8, 2010 at 0:37
  • 1
    If you're on Windows, open a command prompt and type ipconfig /all this will show you the Lease obtained/Lease expires times for your interfaces.
    – Pulse
    Jun 8, 2010 at 0:50
0

What is your operating system? What is your network configuration settings? If you put the router back between the computer and the modem do you have an IP which lasts longer than an hour?

This is really odd, the only thing I can think of is if for some reason your computer was releasing and renewing with a new IP address every hour. You can do this by ipconfig /release and /renew. Check if releasing and renewing gives you a new IP on demand. It does then it's a configuration issue on your computer, just stick the router back in front and you will be fine (as the release renew will get intercepted by the local DHCP server).

2
  • Windows Server 2003 Enterprise 64bit If router is connected to modem then IP will stay the same as long as I do not restart modem like 2-3 times or even more. If computer will be connected via router then IP will lost as long as I don't restart modem few times, as I said before. Release/renew commands change IP
    – DanSpd
    Jun 8, 2010 at 0:55
  • Well it looks like for some reason your computer is releasing the IP lease on purpose then. You likely have something configured wrong, some sort of timeout meant to keep the server up and avoid ip conflicts (assuming it is behind a router) in case anyone using DHCP or static IP assumes your IP. I can't say for certain what it is because I'm not a server guy, you might want to try serverfault.com
    – Daisetsu
    Jun 8, 2010 at 1:13

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .