What is the difference between the WireGuard Android and Windows clients?

First of all, I am a noob. Last summer I bought the Flint 2. I wanted to be more in control because the router of my IP is limited. Step by step I'm learning more about the possibilities. I love the GL.iNet router and their support. My compliments!

My next step on the learning curve is WireGuard VPN. Goal: use my nas remotely. With the documentation it was easy to setup the WG server. For accessing the nas, I activated 'Allow Remote Access to the LAN Subnet' and deactivated 'IP Masquerading'. Everything else, just the defaults.

I installed the WG app and config on my Android phone. Everything works perfect. I can reach the nas and my router (192.168.8.1). Via 5G and my own local wifi network. That was a small curve :smiley:

On my Win 11 laptop it's another story. With my phone as a hotspot for the laptop and WG deactivated on the phone, it works perfect as well. But when my laptop is connected to my wifi, no local IP is reachable. The WG log show the message 'Handshake for peer 1 (192.168.8.1:51820) did not complete after 5 seconds, retrying (try 2)'.

I read somewhere that WG can't automaticly deactivate itself when connected to your own wifi. Is my only option to turn it on/off manualy? Or is there another solution?

And to learn more, I'm curious why there is no problem with Android. Except for the keys and address, everything in the config files is the same.

@Surfertje Welcome.

The main difference is that Android’s WireGuard app runs in user space, while Windows’ WireGuard runs in the operating system kernel. This means Windows can use the built‑in kernel driver for better performance and automatic connection handling, whereas Android’s separate app may require manual toggling or extra configuration to avoid being stuck when connected to your own Wi‑Fi.

You might want to consider looking into Tailscale, which uses the WG protocol. Tailscale merely acts as the coordination server to establish the P2P connection, so you get all the benefits of WG and the ease of setup. It's so simple, even a Neanderthal can set it up.

Tailscale has a free tier up to 6 users, unlimited number of devices, and it will traverse any level of NAT, including CGNAT. I have successfully used Tailscale over multiple levels of NAT and CGNAT (Starlink, ATT). You can run Tailscale on any number of client devices and operating systems. You only need a single instance running on or behind your firewall if you enable subnet routes to reach any IP based device on the remote LAN. Just make sure the devices have a static IP or static IP reservation in your DHCP server. I did this with my parents to allow me to remotely administer their network and devices, including allowing backups to my TrueNAS appliances. All of which were behind several levels of NAT where they were living at the time. Also, it helps if the local and remote sites are on different subnets to avoid IP address conflicts when accessing via the local IP (i.e. not the Tailnet IP). Tailscale has a feature called "VPN on Demand" which you can configure behavior if on trusted or untrusted networks.

Besides what @elvisimprsntr typed.

Another negative side point on Android it is restricted to Androids vpn api.

With linux it is possible to get multicast going over wireguard, but that is not a official implementation by wireguard.

But Android however ignores the traffic and instead tries to bypass the vpn tunnel and do it straight on your wireless network for avahi related / chromecast diagnosis you will get set on the wrong path :upside_down_face:

So it is not only Windows having limitations.

You could try two things though and see if that works:

Add the wireless ip subnet in allowedips, or make wireguard listen on this network interface if that is a option you can choose.

I don't think you are experiencing an Android/Windows issue. I don't have an issue reaching my NAS behind a wireguard server over a phone hotspot or another internet connection from a Windows PC, or Linux, or with an Android app on a Chromebook.

It sounds like you have two different client peers created: (1) for the phone, and (2) for the laptop. Good. If I follow, the phone client can connect. If the phone wg client is off, you can connect the laptop client using the phone as a cellular hotspot, but you cannot connect the laptop client using some other internet connection.

That suggests to me (i) the phone wg isn't really off, or (2) that wifi connection could be the issue, so I would start by trying it with the laptop connected to the internet from some other internet connection, like a library or Starbucks.

Thanks for the insights. I thought I had only missed some setting somewhere.

For me it is not a (big) problem, merely a little inconvenience. The workaround (manually de- / activating) is easy to do. When I forget it, I'll notice it immediately :face_with_hand_over_mouth:

I will experiment with the suggestions you all made.

Thank you for the responses.