Cannot set endpoint to localhost on windows

Hirbod Behnam chrome.hiri.angry at
Sat Aug 29 17:58:10 CEST 2020

I'm not sure if this is already reported or not but I found a small
problem with the windows client of wireguard that does not allow users
to use "plugins" on top of wireguard.
So here is my case. I used gost to create a really simple port
forwarder from my localhost to my server with this command: gost
-L=udp:// (that forwards packets on port
12345 to and of course my server is not :D)
Also here is my wireguard config:

PrivateKey = xxxx
Address =
PublicKey = xxxx
AllowedIPs =,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Endpoint =
PersistentKeepalive = 25

The allowed IPs are all ip addresses except
When I run the client, the log fills with: [TUN] [xxx-wg0] peer(xxx) -
Failed to send data packet write udp4>
wsasendto: The requested address is not valid in its context.
And I cannot connect to anything. Sometimes in gost, it says that a
connection is established but I still cannot connect to anything
though wireguard.

Also it's good to know that the exact config works fine with TunSafe,
the official Ubuntu client and openvpn. (I can connect through gost)
Thanks for the project!

More information about the WireGuard mailing list