Macbook disconnects from internet whenever public ip changes

Sodan

Expert Member
Joined
Nov 25, 2010
Messages
2,894
Heya smart people

So I'm on Vuma Reach with Cool Ideas, and every time the public IP is changed, my macbook loses internet connectivity. Wifi connectivity remains, but internet connectivity is gone. Disconnecting and reconnecting from the wifi doesn't help. Doing an ifconfig dns flush or ip renew doesn't help.

So far I have only found a full reboot restores internet connectivity. This started to really annoy me (enough for me to actually take the effort to slap together a shell script to record the public ip every minute to confirm that internet connectivity is lost whenever the public ip changes).

1705318518964.png

Laptop was closed for 20 minutes (from 12:55) and when I opened it (13:15), no internet. I rebooted it and, lo and behold, we can see the public IP address has changed (13:20).

Here is the content of the script I wrote to record the public ip:
Bash:
while true; do curl -s https://ipinfo.io/ip | ts >> ip.log; sleep 60; done

I really don't want to have to reboot my macbook every single time the public ip is changed. Does anyone know what I can do about this?
 
Btw, my other devices, phone and xiaomi mi box, handle the public ip change just fine. Only my macbook has a problem with this.
 
If I recall I had a similar issue when I was using WIFI, using ethernet cable now and havent had any issues again
 
Heya smart people

So I'm on Vuma Reach with Cool Ideas, and every time the public IP is changed, my macbook loses internet connectivity. Wifi connectivity remains, but internet connectivity is gone. Disconnecting and reconnecting from the wifi doesn't help. Doing an ifconfig dns flush or ip renew doesn't help.

So far I have only found a full reboot restores internet connectivity. This started to really annoy me (enough for me to actually take the effort to slap together a shell script to record the public ip every minute to confirm that internet connectivity is lost whenever the public ip changes).

View attachment 1646387

Laptop was closed for 20 minutes (from 12:55) and when I opened it (13:15), no internet. I rebooted it and, lo and behold, we can see the public IP address has changed (13:20).

Here is the content of the script I wrote to record the public ip:
Bash:
while true; do curl -s https://ipinfo.io/ip | ts >> ip.log; sleep 60; done

I really don't want to have to reboot my macbook every single time the public ip is changed. Does anyone know what I can do about this?
What router are you using? And when it goes offline, can you still ping the router's LAN IP ?
 
This one:

WhatsApp Image 2024-01-15 at 14.12.51.jpeg



EchoLife EG8141A5

And yes, iirc, I can still ping the router when then public ip changes. However, I'm not 100% sure. Should I add that in to the script so we have confirmation?
 
This one:

View attachment 1646397



EchoLife EG8141A5

And yes, iirc, I can still ping the router when then public ip changes. However, I'm not 100% sure. Should I add that in to the script so we have confirmation?
Are you on Vuma Reach ? Is the Vuma CPE also your WiFi router? What's plugged into that LAN port ?

Edit: Sorry, I see you are on Vuma Reach. Please add a ping check to your script to see if you can still ping the router IP address.

Unfortunately we don't have a lot of control over Vuma Reach CPE's. A WAN IP change change on the router shouldn't really affect your internet from the Macbook, so it's rather strange. Also, see if you can still ping 154.0.1.1 when the IP changes.
 
Last edited:
Okay, script updated with ping test to router.

EDIT: Just saw your request for me to ping 154.0.1.1. I've added it to script now:

Bash:
while true
    do
        curl -s https://ipinfo.io/ip | ts >> ip.log
        ping 192.168.18.1 -c 4 | grep icmp_seq | ts >> ip.log
        ping 154.0.1.1    -c 4 | grep icmp_seq | ts >> ip.log
        sleep 60
    done

The only data cable plugged into the router is the internet cable. There are no devices connected by LAN.

Interestingly, the public IP address changed again - by reverting back to what it was earlier today. Is this expected behaviour? :unsure:

Note that macbook did not lose internet connectivity this time.


1705326447993.png
 
Last edited:
You probably can disconnect and reconnect wifi
or switch on and off instead of reboot
but goto the Wifi Network setting and switch off Limit IP Address Tracking
 
Heya smart people

So I'm on Vuma Reach with Cool Ideas, and every time the public IP is changed, my macbook loses internet connectivity. Wifi connectivity remains, but internet connectivity is gone. Disconnecting and reconnecting from the wifi doesn't help. Doing an ifconfig dns flush or ip renew doesn't help.

So far I have only found a full reboot restores internet connectivity. This started to really annoy me (enough for me to actually take the effort to slap together a shell script to record the public ip every minute to confirm that internet connectivity is lost whenever the public ip changes).

View attachment 1646387

Laptop was closed for 20 minutes (from 12:55) and when I opened it (13:15), no internet. I rebooted it and, lo and behold, we can see the public IP address has changed (13:20).

Here is the content of the script I wrote to record the public ip:
Bash:
while true; do curl -s https://ipinfo.io/ip | ts >> ip.log; sleep 60; done

I really don't want to have to reboot my macbook every single time the public ip is changed. Does anyone know what I can do about this?

What you are describing is similar to an issue I've had with my MacBook since forever. If I'm connected to my work VPN (Cisco any-connect) and I let the MacBook go into sleep mode, there's a high % possibility that it will not have internet after I wake it up again.

I can ping addresses via the terminal, but nothing works out side of that. And as you say, a full reboot is the only thing that fixes it. It's the no.1 reason I use Amphetamine to keep my laptop from sleeping. I'm pretty sure it's some macOS nonsense going on, as there are certainly other people with similar issues: https://forums.openvpn.net/viewtopic.php?t=35290
 
Last edited:
You probably can disconnect and reconnect wifi
or switch on and off instead of reboot
but goto the Wifi Network setting and switch off Limit IP Address Tracking
From the macbook or the router? Already tried from the macbook, didn't work.

Tell me more about this Limit IP Address Tracking. Is configured on the router?
 
What you are describing is similar to an issue I've had with my MacBook since forever. If I'm connected to my work VPN (Cisco any-connect) and I let the MacBook go into sleep mode, there's a high % possibility that it will not have internet after I wake it up again.

I can ping addresses via the terminal, but nothing works out side of that. And as you say, a full reboot is the only thing that fixes it. It's the no.1 reason I use Amphetamine to keep my laptop from sleeping. I'm pretty sure it's some macOS nonsense going on, as there are certainly other people with similar issues: https://forums.openvpn.net/viewtopic.php?t=35290
It's possible what you describe is related but I'm not on any VPN. I do suspect it is a macOS specific thing, since this does not happen on any other devices. However, I also think it is a router specific thing, since this did not happen on my CISP-Vumatel fibre connectivity when I was living in Plumstead, where I was using a different router.

Hence, @TheRoDent, I believe there is a good chance this problem will go away if we can swap out the router for a different make/model/whatever.
 
It's possible what you describe is related but I'm not on any VPN. I do suspect it is a macOS specific thing, since this does not happen on any other devices. However, I also think it is a router specific thing, since this did not happen on my CISP-Vumatel fibre connectivity when I was living in Plumstead, where I was using a different router.

Hence, @TheRoDent, I believe there is a good chance this problem will go away if we can swap out the router for a different make/model/whatever.
Unfortunately, with Reach, we don't supply the router, it's supplied by Vumatel, and like I said, our management over it is basically limited to changing the WiFi SSID.

I'm not an apple user, so I can really only give limited advice.
When the macbook goes into this state, try and ping the wifi router IP, 154.0.1.1 and traceroute to 154.0.1.1 as well.

Please supply the output of "netstat -rn" as well, when it goes into this state.

Perhaps try removing /Library/Preferences/com.apple.captive.plist as described here https://discussions.apple.com/thread/255048869?sortBy=best

Could be that the captive portal detection is doing something strange.
 
Unfortunately, with Reach, we don't supply the router, it's supplied by Vumatel, and like I said, our management over it is basically limited to changing the WiFi SSID.

I'm not an apple user, so I can really only give limited advice.
When the macbook goes into this state, try and ping the wifi router IP, 154.0.1.1 and traceroute to 154.0.1.1 as well.

Please supply the output of "netstat -rn" as well, when it goes into this state.

Perhaps try removing /Library/Preferences/com.apple.captive.plist as described here https://discussions.apple.com/thread/255048869?sortBy=best

Could be that the captive portal detection is doing something strange.
Thanks, I have saved this post to my notes so I can do as you request when it goes offline again. Is there a fibre product besides Reach I can use at my location? I am happy to switch to something else if it might resolve this issue.


EDIT: I have removed (renamed/backed up)
/Library/Preferences/com.apple.captive.plist
and rebooted.

Let's see how it goes.
 
Last edited:
Thanks, I have saved this post to my notes so I can do as you request when it goes offline again. Is there a fibre product besides Reach I can use at my location? I am happy to switch to something else if it might resolve this issue.

If you are in a Vumatel Reach area, chances are low that there are other options, but I don't have any details about you other than our interactions on this forum. If you want, send me a Private Message with your account details and we can have a look.

However, I don't think the issue is with the connectivity, as you said, other devices happily carry on working. Let's see if we can get to the bottom of the Apple issue.
 
Last edited:
Back
Top