Husarnet fails to connect to websetup

Hi,

I’m having issues with the windows client. Whenever I try to join my network it times out on “waiting for websetup connection” after 1 minute.

This is on a fresh install of windows 11 and this worked fine with the previous install on the same computer. Ive tried the basic troubleshooting tips like restart, reinstall, and disable windows firewall but none worked.

Heres the output of “husarnet status -v”:

Version
● CLI:                       2.0.13
● Daemon (running):          2.0.13
● Daemon (binary):           2.0.13

Dashboard URL
● CLI:                       app.husarnet.com
● Daemon:                    app.husarnet.com

Connection status
● Base Server:               188.165.23.196:5582 (UDP)
● Websetup:                  not connected

Readiness
● Is ready to handle data?   yes
● Is ready to join?          yes
● Is joined?                 no

User settings
● DAEMON_API_PORT:           16216
● DASHBOARD_FQDN:            app.husarnet.com
● ENABLE_COMPRESSION:        false
● ENABLE_MULTICAST:          true
● ENABLE_TCP_TUNELLING:      true
● ENABLE_UDP:                true
● ENABLE_UDP_TUNELLING:      true
● ENABLE_WHITELIST:          true
● EXTRA_ADVERTISED_ADDRESS:
● HOSTNAME:
● INTERFACE_NAME:            {190223D7-1A53-4529-A388-E90E87CD045C}
● JOIN_CODE:
● OVERRIDE_BASE_ADDRESS:
● OVERRIDE_SOURCE_PORT:

If you want to override any of those variables, prefix them with HUSARNET_ and provide as an environment variable to husarnet-daemon

Local
● Husarnet IP:
fc94:2037:d2ec:d82e:e28b:0059:e980:1d4c

Whitelist
fc94:b01d:1803:8dd8:b293:5c7d:7639:932a (websetup)
● inactive   ● no data flow   ● peer to peer
Used destination address:   invalid AddrPort

Output of “husarnet join ”:

 SUCCESS:  Successfully registered a join request
 SUCCESS:  Waiting for Base server connection (any protocol)…
 ERROR:  timeout
 ERROR:  timeout

And husarnet.log:

WARNING  found tap device: {37B5F8CE-9FA5-4243-BB0C-F790CC8A66C3}                         (/app/core/ports/windows/port_interface.cpp:98)
WARNING  found tap device: {190223D7-1A53-4529-A388-E90E87CD045C}                         (/app/core/ports/windows/port_interface.cpp:98)
WARNING  Windows interface ID is {190223D7-1A53-4529-A388-E90E87CD045C}                   (/app/core/ports/windows/port_interface.cpp:195)
WARNING  success: tap device opened                                                       (/app/core/ports/windows/tun.cpp:56)
WARNING  tap config OK                                                                    (/app/core/ports/windows/tun.cpp:164)
WARNING  sourceNetshName: Ethernet 3                                                      (/app/core/ports/windows/networking.cpp:43)
3 is not an acceptable value for admin.
The parameter is incorrect.


WARNING  rename failed                                                                    (/app/core/ports/windows/networking.cpp:51)
One or more essential parameters were not entered.
Verify the required parameters, and reenter them.
The syntax supplied for this command is not valid. Check help for the correct syntax.

Usage: add neighbors [interface=]<string> [address=]<IPv6 address>]
             [neighbor=]<string> [[subinterface=]<string>]
             [[store=]active|persistent]

Parameters:

       Tag              Value
       interface      - Interface name or index.
       address        - Address of neighbor.
       neighbor       - Link layer address of neighbor.
       subinterface   - LUID of the subinterface.  This is only needed on
                        interfaces with multiple subinterfaces.
       store          - One of the following values:
                        active: Address will disappear on next boot.
                        persistent: Address will be persistent.
                                    This is the default.


Example:

       add neighbors "Private" "3f::2" "12-34-56-78-9a-bc"


WARNING  myIp is: fc94:2037:d2ec:d82e:e28b:0059:e980:1d4c                                 (/app/core/ports/windows/networking.cpp:60)

Invalid address parameter (3). It should be a valid IPv6 address.


Invalid nexthop parameter (3). It should be a valid IPv6 address.


Invalid nexthop parameter (3). It should be a valid IPv6 address.

WARNING  Installing rule: AllowHusarnet in Windows Firewall                               (/app/core/ports/windows/networking.cpp:74)
New-NetFirewallRule : A positional parameter cannot be found that accepts argument '3'.
At line:1 char:1
+ New-NetFirewallRule -DisplayName AllowHusarnet -Direction Inbound -Ac ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (:) [New-NetFirewallRule], ParameterBindingException
    + FullyQualifiedErrorId : PositionalParameterNotFound,New-NetFirewallRule
 
WARNING  MAC address: 00:ff:19:02:23:d7                                                   (/app/core/ports/windows/tun.cpp:181)
WARNING  ngsocket fc94:2037:d2ec:d82e:e28b:0059:e980:1d4c listening on 5582               (/app/core/ngsocket.cpp:580)
INFO     Sending update request to websetup                                               (/app/core/websetup.cpp:155)
ERROR    websetup UDP send failed No error                                                (/app/core/websetup.cpp:101)
WARNING  HTTP thread bound to 127.0.0.1:16216. Will start handling the connections.       (/app/core/api_server/server.cpp:361)
WARNING  waiting until base address is resolved...                                        (/app/core/ngsocket.cpp:887)
WARNING  waiting until base address is resolved...                                        (/app/core/ngsocket.cpp:887)
WARNING  waiting until base address is resolved...                                        (/app/core/ngsocket.cpp:887)
WARNING  saving settings                                                                  (/app/core/config_storage.cpp:78)
WARNING  retrying with fallback base address: 188.165.23.196:443                          (/app/core/ngsocket.cpp:882)
INFO     establishing connection to base 188.165.23.196:443                               (/app/core/ngsocket.cpp:891)
WARNING  TCP connection to base server established                                        (/app/core/ngsocket.cpp:395)
WARNING  Sending join request to websetup                                                 (/app/core/websetup.cpp:150)
ERROR    websetup UDP send failed No error                                                (/app/core/websetup.cpp:101)
WARNING  tried to serialize unexpected peer to base message type: NAT_INIT_TRANSIENT      (/app/core/ngsocket.cpp:838)
WARNING  UDP connection to base server established                                        (/app/core/ngsocket.cpp:370)
WARNING  Sending join request to websetup                                                 (/app/core/websetup.cpp:150)
ERROR    websetup UDP send failed No error                                                (/app/core/websetup.cpp:101)
WARNING  Sending join request to websetup                                                 (/app/core/websetup.cpp:150)
ERROR    websetup UDP send failed No error                                                (/app/core/websetup.cpp:101)
WARNING  Sending join request to websetup                                                 (/app/core/websetup.cpp:150)
ERROR    websetup UDP send failed No error                                                (/app/core/websetup.cpp:101)
WARNING  Sending join request to websetup                                                 (/app/core/websetup.cpp:150)
ERROR    websetup UDP send failed No error                                                (/app/core/websetup.cpp:101)
WARNING  tried to serialize unexpected peer to base message type: NAT_INIT_TRANSIENT      (/app/core/ngsocket.cpp:838)
WARNING  Sending join request to websetup                                                 (/app/core/websetup.cpp:150)
ERROR    websetup UDP send failed No error                                                (/app/core/websetup.cpp:101)
WARNING  Sending join request to websetup                                                 (/app/core/websetup.cpp:150)
ERROR    websetup UDP send failed No error                                                (/app/core/websetup.cpp:101)
WARNING  Sending join request to websetup                                                 (/app/core/websetup.cpp:150)
ERROR    websetup UDP send failed No error                                                (/app/core/websetup.cpp:101)
WARNING  Sending join request to websetup                                                 (/app/core/websetup.cpp:150)
ERROR    websetup UDP send failed No error                                                (/app/core/websetup.cpp:101)
WARNING  Sending join request to websetup                                                 (/app/core/websetup.cpp:150)
ERROR    websetup UDP send failed No error                                                (/app/core/websetup.cpp:101)
WARNING  tried to serialize unexpected peer to base message type: NAT_INIT_TRANSIENT      (/app/core/ngsocket.cpp:838)
WARNING  Sending join request to websetup                                                 (/app/core/websetup.cpp:150)
ERROR    websetup UDP send failed No error                                                (/app/core/websetup.cpp:101)
WARNING  Sending join request to websetup                                                 (/app/core/websetup.cpp:150)
ERROR    websetup UDP send failed No error                                                (/app/core/websetup.cpp:101)
WARNING  Sending join request to websetup                                                 (/app/core/websetup.cpp:150)
ERROR    websetup UDP send failed No error                                                (/app/core/websetup.cpp:101)
WARNING  Sending join request to websetup                                                 (/app/core/websetup.cpp:150)
ERROR    websetup UDP send failed No error                                                (/app/core/websetup.cpp:101)
WARNING  Sending join request to websetup                                                 (/app/core/websetup.cpp:150)
ERROR    websetup UDP send failed No error                                                (/app/core/websetup.cpp:101)
WARNING  tried to serialize unexpected peer to base message type: NAT_INIT_TRANSIENT      (/app/core/ngsocket.cpp:838)
WARNING  Sending join request to websetup                                                 (/app/core/websetup.cpp:150)
ERROR    websetup UDP send failed No error                                                (/app/core/websetup.cpp:101)
WARNING  Sending join request to websetup                                                 (/app/core/websetup.cpp:150)
ERROR    websetup UDP send failed No error                                                (/app/core/websetup.cpp:101)
WARNING  Sending join request to websetup                                                 (/app/core/websetup.cpp:150)
ERROR    websetup UDP send failed No error                                                (/app/core/websetup.cpp:101)
WARNING  Sending join request to websetup                                                 (/app/core/websetup.cpp:150)
ERROR    websetup UDP send failed No error                                                (/app/core/websetup.cpp:101)
WARNING  Sending join request to websetup                                                 (/app/core/websetup.cpp:150)
ERROR    websetup UDP send failed No error                                                (/app/core/websetup.cpp:101)
WARNING  Sending join request to websetup                                                 (/app/core/websetup.cpp:150)
ERROR    websetup UDP send failed No error                                                (/app/core/websetup.cpp:101)
WARNING  tried to serialize unexpected peer to base message type: NAT_INIT_TRANSIENT      (/app/core/ngsocket.cpp:838)
WARNING  Sending join request to websetup                                                 (/app/core/websetup.cpp:150)
ERROR    websetup UDP send failed No error                                                (/app/core/websetup.cpp:101)
WARNING  Sending join request to websetup                                                 (/app/core/websetup.cpp:150)
ERROR    websetup UDP send failed No error                                                (/app/core/websetup.cpp:101)
WARNING  Sending join request to websetup                                                 (/app/core/websetup.cpp:150)
ERROR    websetup UDP send failed No error                                                (/app/core/websetup.cpp:101)
WARNING  Sending join request to websetup                                                 (/app/core/websetup.cpp:150)
ERROR    websetup UDP send failed No error                                                (/app/core/websetup.cpp:101)
WARNING  Sending join request to websetup                                                 (/app/core/websetup.cpp:150)
ERROR    websetup UDP send failed No error                                                (/app/core/websetup.cpp:101)
WARNING  tried to serialize unexpected peer to base message type: NAT_INIT_TRANSIENT      (/app/core/ngsocket.cpp:838)
WARNING  Sending join request to websetup                                                 (/app/core/websetup.cpp:150)
ERROR    websetup UDP send failed No error                                                (/app/core/websetup.cpp:101)
WARNING  Sending join request to websetup                                                 (/app/core/websetup.cpp:150)
ERROR    websetup UDP send failed No error                                                (/app/core/websetup.cpp:101)
WARNING  Sending join request to websetup                                                 (/app/core/websetup.cpp:150)
ERROR    websetup UDP send failed No error                                                (/app/core/websetup.cpp:101)
WARNING  Sending join request to websetup                                                 (/app/core/websetup.cpp:150)
ERROR    websetup UDP send failed No error                                                (/app/core/websetup.cpp:101)
WARNING  Sending join request to websetup                                                 (/app/core/websetup.cpp:150)
ERROR    websetup UDP send failed No error                                                (/app/core/websetup.cpp:101)
WARNING  tried to serialize unexpected peer to base message type: NAT_INIT_TRANSIENT      (/app/core/ngsocket.cpp:838)
WARNING  Sending join request to websetup                                                 (/app/core/websetup.cpp:150)
ERROR    websetup UDP send failed No error                                                (/app/core/websetup.cpp:101)
WARNING  Sending join request to websetup                                                 (/app/core/websetup.cpp:150)
ERROR    websetup UDP send failed No error                                                (/app/core/websetup.cpp:101)
WARNING  Sending join request to websetup                                                 (/app/core/websetup.cpp:150)
ERROR    websetup UDP send failed No error                                                (/app/core/websetup.cpp:101)
WARNING  Sending join request to websetup                                                 (/app/core/websetup.cpp:150)
ERROR    websetup UDP send failed No error                                                (/app/core/websetup.cpp:101)
WARNING  Sending join request to websetup                                                 (/app/core/websetup.cpp:150)
ERROR    websetup UDP send failed No error                                                (/app/core/websetup.cpp:101)

Could someone help with this?

EDIT: I also tried adding the join code and hostname as environment variables so that doesn’t work either

Hello @warhammercasey

Thank you for the report.

Can you please try uninstalling Husarnet and deleting completely the data folder, which is in %PROGRAMDATA%\Husarnet (typically C:\ProgramData\Husarnet) and then installing again? If you deleted data folder previoulsy and it didn’t work, let me know.

Thank you for all the logs. They might uncover some bugs in our Windows implementation. I will be looking into this.

If possible, can you also provide the output of following PowerShell commands:

Get-ComputerInfo | select WindowsProductName, WindowsVersion, OsHardwareAbstractionLayer
Get-NetAdapter
Get-NetConnectionProfile

Thank you,
Best regards,
Szymon

Hi @ympek thanks for your reply.

Reinstalling and deleting the husarnet folder didn’t change anything.

Here’s the output of the three commands:

WindowsProductName WindowsVersion OsHardwareAbstractionLayer
------------------ -------------- --------------------------
Windows 10 Home    2009           10.0.22621.819
Name                      InterfaceDescription                    ifIndex Status       MacAddress             LinkSpeed
----                      --------------------                    ------- ------       ----------             ---------
Bluetooth Network Conn... Bluetooth Device (Personal Area Netw...      20 Disconnected 38-DE-AD-2C-3D-FE         3 Mbps
Ethernet 4                TAP-Windows Adapter V9 #3                    43 Up           00-FF-DF-1F-4F-2C       100 Mbps
Ethernet                  Realtek PCIe GbE Family Controller           14 Up           70-85-C2-C4-16-41         1 Gbps
Wi-Fi                     Intel(R) Dual Band Wireless-AC 8260          12 Disconnected 38-DE-AD-2C-3D-FA          0 bps
Ethernet 2                TAP-Windows Adapter V9                        7 Disconnected 00-FF-37-B5-F8-CE       100 Mbps
Ethernet 3                TAP-Windows Adapter V9 #2                     3 Disconnected 00-FF-19-02-23-D7       100 Mbps
Name                     : CSMwireless
InterfaceAlias           : Ethernet
InterfaceIndex           : 14
NetworkCategory          : Public
DomainAuthenticationKind : None
IPv4Connectivity         : Internet
IPv6Connectivity         : NoTraffic

Name                     : Unidentified network
InterfaceAlias           : Ethernet 4
InterfaceIndex           : 43
NetworkCategory          : Public
DomainAuthenticationKind : None
IPv4Connectivity         : NoTraffic
IPv6Connectivity         : NoTraffic

Second that. Unfortunately husarnet seems to still have a lot of loose ends to tie.

Neither the windows client, nor any example in the esp32 section is functional. Pretty sad, as it’s a promising piece of code! Hope v2 gains some momentum here.

Hello everyone,

I’ve created a patch for a bug that was apparently introduced in builds spanning 2.0.8 - 2.0.16 and is most certainly the cause of reported behavior.

Please try build 2.0.17 which you can download from our nightly builds: https://nightly.husarnet.com/ file: husarnet-latest-setup.exe

Before installing, please uninstall old version as well as delete data folder. Also, use command prompt as Administrator when trying out husarnet join

We will be testing this build today and probably soon it will be released to stable but I wanted to give you feedback earlier.

Thank you!
Best regards,
Szymon

The new build worked perfectly! Thank you

Thank you for the feedback!

We’ve released those changes to stable builds, so you can go back to using the regular setup.


Have a wonderful day
Paweł