Persist Internet Connection Sharing after Reboot
In my previous post I wrote about how to use Microsoft's Internet Connection Sharing to share an internet connection on a Windows machine with a Raspberry Pi. Unfortunately, I learned that the ICS service settings do not persist after the Windows machine reboots, and as a result the ICS connection is lost.
The fix is explained in this Microsoft Learn page.
To fix the issue, add a key in the Windows registry with the following information:
- Path: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\SharedAccess
- Type: DWORD
- Setting: EnableRebootPersistConnection
- Value: 1
I then had to reset the shared connection by unchecking and rechecking the boxes in the Sharing
tab of the internet connection as explained previously. After a reboot, I confirmed that I could connect to the Pi without manually re-enabling ICS.
Comments
Comments powered by Disqus