• 0

Changed segment while accessing remotely - ip on PC should update?


Go to solution Solved by BudMan,

Question

AndyD

I have a server and main desktop that I access remotely. While trying to set up openvpn, I changed the default segment to 192.168.72.x. My main desktop is online already with a new ip but not sure if it's because I was making the router change while remoting into that pc.

My server doesn't have a new ip yet though and so I can't access. It should try to get a valid ip after a certain point right? I can always switch back to the previous segment but it should be automatic right?

Link to post
Share on other sites

11 answers to this question

Recommended Posts

  • 0
+BudMan

Was/is it dhcp? If so then yes once its lease is at 50% it should try and renew and get a new one - what is the lease time on your leases? If you set it static on the box, then no it would never ask for a new IP.

Link to post
Share on other sites
  • 0
AndyD

Hey Budman. Yeah I switched to dhcp on both pcs before making the change

I checked the pc that is online and looks like the lease expires in 24 hours. Anyway to force it from the router? Like if I have the Mac address?

Link to post
Share on other sites
  • 0
+BudMan

No not really.. Unless you can get someone to reboot it, it should not try and renew until it hits 50%.. Should of set the lease time to like 1 hour if wanting it to auto change to new segment ;)

You could setup secondary IP on your other machine that changed, and then say rdp to it from that box and do ipconfig /renew

Link to post
Share on other sites
  • 0
AndyD

Hah yeah I didn't think of the leasing issue.  In fact, I was pretty close to making the segment change without switching to DHCP lol.  Good thing I didn't

 

As for the secondary IP, wouldn't it also need proper gateway IP for me to connect to it?  I can wait out the lease release if necessary but curious what you're referring to

Link to post
Share on other sites
  • 0
+BudMan

No it just needs an IP on the segment that other machine is still on, your not trying to get off that network.. Your using the other IP to connect to it with.

Link to post
Share on other sites
  • 0
AndyD

I actually ended up switching back the segment, changing the IP on the server manually, and then changing back the segment.  Now everything back online

 

The reason I went this way is because I stupidly used the second tab in the Network Adapter Configuration - the private IP address.   I didn't notice what I did till after I made the changes above.  I now know I should have added the IP through the button on the first tab.  Doh!

Link to post
Share on other sites
  • 0
+BudMan

as long as you got it sorted - there are lots of ways to skin the cat in any sort of problem ;)

Link to post
Share on other sites
  • 0
Ambroos

Another thing you can do to force a DHCP refresh, is restart the router/switch/gateway/... That usually resets the network connection and will make Windows ask for a new IP. But if you have a "dumb" switch in between you can't do that either.

Link to post
Share on other sites
  • 0
+BudMan

^ yup see the 27th way to skin the cat ;)

Link to post
Share on other sites
  • 0
AndyD

Another thing you can do to force a DHCP refresh, is restart the router/switch/gateway/... That usually resets the network connection and will make Windows ask for a new IP. But if you have a "dumb" switch in between you can't do that either.

Yeah I had a switch between the server and router. And I was wondering before why main pc would get a new ip every time I made a change on my router but you just reminded me that I have connected directly into the router

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.