Moving between local and external network

I recently set up a nextcloudpi (I know, but I’m broke), but my router, which is kind of ISP trash, doesn’t seem to have any options to redirect my DNS to the local network. So I’m stuck using the ip to log in at home, and the dns elsewhere… which would be fine, except I’m on a laptop and I like to use it in different places. Is there any trick to getting the windows client to move seamlessly between LAN and WAN?


Is your laptop running Windows? For another user with Windows I wrote the following which should help you too in that case:

For Unix a shell script would be necessary, but could do the same then.

1 Like

That worked gangbusters, thanks a million.

You are very welcome. I’m glad it helped.