CONNECTING HEADLESS SERVER TO PC

kevin kipkorir 0 Reputation points
2025-06-08T14:40:35.92+00:00

Hello, I have a problem where anytime my Ubuntu headless server running on a Raspberry tries to connect to my hotspot, it is blocked and the hotspot shuts down. I am not sure where the error comes from, but this is what the system event viewer says:

Faulting application name: svchost.exe_SharedAccess, version: 10.0.26100.1150, time stamp: 0xfdace0d9

Faulting module name: ipnathlp.dll, version: 10.0.26100.4202, time stamp: 0x3dd17d49

Exception code: 0xc0000005

Fault offset: 0x000000000002f3f8

Faulting process id: 0xFB0

Faulting application start time: 0x1DBD8820122B070

Faulting application path: C:\WINDOWS\System32\svchost.exe

Faulting module path: c:\windows\system32\ipnathlp.dll

Report Id: fc6991a7-35a1-4c4b-b58f-af7b8f8a1674

Faulting package full name:

Faulting package-relative application ID:

How can I solve this? It used to work just fine.

Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
11,957 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Mark Dicks 565 Reputation points
    2025-06-09T13:10:07.48+00:00

    You're encountering a crash in the Windows Internet Connection Sharing (ICS) service, which is responsible for running your mobile hotspot. The crash is happening in ipnathlp.dll, a core component that handles NAT (network address translation) and routing for ICS. This suggests your Raspberry Pi's connection triggers a bug or unexpected condition in ICS, causing the Windows service to crash and your hotspot to shut down.

    What's Going Wrong

    When your Ubuntu headless Raspberry Pi connects, something about its network behavior possibly:

    an unexpected DHCP request,

    IPv6 handling,

    routing loop,

    or invalid packets

    is causing svchost.exe running SharedAccess to crash in ipnathlp.dll.

    This is not a hardware issue with your Pi or Wi-Fi adapter, it's a software crash on the Windows side.

    Steps to Fix or Work Around the Issue

    1) Disable and Re-enable ICS

    Sometimes ICS gets into a corrupted state. Try resetting it:

    Open services.msc

    Find Internet Connection Sharing (ICS)

    Right-click → Stop

    Wait 10 seconds → Right-click → Start again

    Then re-enable the hotspot and try connecting the Raspberry Pi again.

    2) Update Windows

    Check for and install any Windows updates. You are on build 26100.1150 and the crashing module is from 26100.4202 this mismatch suggests either:

    A partial update,

    Corrupt system files,

    Or new bugs introduced in recent Windows Insider builds (likely, if you’re on a preview version).

    To fix this:

    • Go to Settings > Update & Security > Windows Update
    • Check for updates
    • Reboot Update Windows Check for and install any Windows updates. You are on build 26100.1150 and the crashing module is from 26100.4202 this mismatch suggests either:
      • A partial update,
    • Corrupt system files,
    • Or new bugs introduced in recent Windows Insider builds (likely, if you’re on a preview version). To fix this:
      • Go to Settings > Update & Security > Windows Update
      • Check for updates
      • Reboot

    3) Run System File Checker

    Corruption in ipnathlp.dll or related services may cause instability.

    Run the following in Command Prompt as Administrator:

    sfc /scannow
    

    Then:

    DISM /Online /Cleanup-Image /RestoreHealth
    

    4) Use Static IP on Raspberry Pi

    If your Raspberry Pi is sending unexpected DHCP requests or causing issues during negotiation, assigning it a static IP may help.

    Edit /etc/netplan/01-netcfg.yaml (or similar) on your Raspberry Pi to set a static IP like 192.168.137.2 (Windows ICS default subnet is 192.168.137.0/24).

    Example:

    network:
      version: 2
      ethernets:
        wlan0:
          dhcp4: no
          addresses: [192.168.137.2/24]
          gateway4: 192.168.137.1
          nameservers:
            addresses: [8.8.8.8, 1.1.1.1]
    

    Apply with:

    sudo netplan apply
    

    5) Consider Using USB Tethering Instead

    If Wi-Fi ICS keeps failing, using USB tethering from your phone to your PC (or PC to Pi via USB gadget mode) can be more stable and doesn't rely on ipnathlp.dll.

    Wishing you all the best, lemme know how it goes
    Kind Regards
    Mark Dicks


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.