https://netmaker.org logo
Title
h

high-translator-3408

07/01/2022, 11:07 PM
I'm on Windows 11 and have v0.14.4 installed for both client and server (on a remote server). I can join one network, but am unable to join a second network. A second wireguard interface doesn't seem to appear only the first. If I do a
netclient list
I can see both networks listed. Is this a bug or something specific to my computer?
b

bored-island-21407

07/01/2022, 11:14 PM
The second network does not show if you run
wg show
h

high-translator-3408

07/01/2022, 11:15 PM
no it does not. Seems like the config isn't being sent to wireguard
b

bored-island-21407

07/01/2022, 11:16 PM
any errors in netclient logs?
what is output of netclient pull -vvv -n
h

high-translator-3408

07/01/2022, 11:18 PM
Where would I find the logs?
b

bored-island-21407

07/01/2022, 11:19 PM
I don't recall where the logs are on windows (see my avatar)
h

high-translator-3408

07/01/2022, 11:24 PM
waiting for interface... file does not exist Error pulling network config for network: nocnet could not reliably create interface, please check wg installation and retry
b

bored-island-21407

07/01/2022, 11:26 PM
pull on network that does show up?
h

high-translator-3408

07/01/2022, 11:26 PM
yes, that's what shows when I run the verbose pull
b

bored-island-21407

07/01/2022, 11:26 PM
On both networks?
h

high-translator-3408

07/01/2022, 11:26 PM
just on the second
the first works fine
b

bored-island-21407

07/01/2022, 11:27 PM
What happens when you do a pull on the working one?
also the logs are pretty sparse, you did use -vvv
h

high-translator-3408

07/01/2022, 11:28 PM
[netclient.exe] 2022-07-01 18:27:10 waiting for interface... [netclient.exe] 2022-07-01 18:27:10 interface ready - netclient.. ENGAGE [netclient.exe] 2022-07-01 18:27:14 pulled network config for sahnet [netclient.exe] 2022-07-01 18:27:14 register at https://netmaker.*.***:443/api/server/register [netclient.exe] 2022-07-01 18:27:15 certificates/key saved
yes I was just pulling out the errors
b

bored-island-21407

07/01/2022, 11:29 PM
Can you paste the full output
Data on what succeeded is also valuable information
h

high-translator-3408

07/01/2022, 11:33 PM
Second network fails
netclient pull -vvv -n nocnet
[netclient.exe] 2022-07-01 18:32:01 netclient.exe is in proper location, C:\Program Files (x86)\Netclient\netclient.exe
2022/07/01 18:32:01 Gravitl Netclient on Windows started
[netclient.exe] 2022-07-01 18:32:01 turn on UDP hole punching (dynamic port setting)? no
[netclient.exe] 2022-07-01 18:32:04 waiting for interface...
file does not exist
[netclient.exe] 2022-07-01 18:32:06 Error pulling network config for network:  nocnet
 could not reliably create interface, please check wg installation and retry
[netclient.exe] 2022-07-01 18:32:06 register at https://api.netmaker.redacted:443/api/server/register
[netclient.exe] 2022-07-01 18:32:06 certificates/key saved
[netclient.exe] 2022-07-01 18:32:07 running stop of Windows Netclient daemon
[netclient.exe] 2022-07-01 18:32:07 error running command: "C:\Program Files (x86)\Netclient\winsw.exe" "stop"
[netclient.exe] 2022-07-01 18:32:07 '"C:\Program Files (x86)\Netclient\winsw.exe"' is not recognized as an internal or external command,
 perable program or batch file.
[netclient.exe] 2022-07-01 18:32:07 error with stop of Windows Netclient daemon: exit status 1 : '"C:\Program Files (x86)\Netclient\winsw.exe"' is not recognized as an internal or external command,
operable program or batch file.

[netclient.exe] 2022-07-01 18:32:07 running start of Windows Netclient daemon
[netclient.exe] 2022-07-01 18:32:07 error running command: "C:\Program Files (x86)\Netclient\winsw.exe" "start"
[netclient.exe] 2022-07-01 18:32:07 '"C:\Program Files (x86)\Netclient\winsw.exe"' is not recognized as an internal or external command,
 perable program or batch file.
[netclient.exe] 2022-07-01 18:32:07 error with start of Windows Netclient daemon: exit status 1 : '"C:\Program Files (x86)\Netclient\winsw.exe"' is not recognized as an internal or external command,
operable program or batch file.

[netclient.exe] 2022-07-01 18:32:07 reset network and peer configs
First network works
PS C:\Program Files (x86)\Netclient> netclient pull -vvv -n sahnet
[netclient.exe] 2022-07-01 18:33:25 netclient.exe is in proper location, C:\Program Files (x86)\Netclient\netclient.exe
2022/07/01 18:33:25 Gravitl Netclient on Windows started
[netclient.exe] 2022-07-01 18:33:25 turn on UDP hole punching (dynamic port setting)? no
[netclient.exe] 2022-07-01 18:33:28 waiting for interface...
[netclient.exe] 2022-07-01 18:33:30 interface ready - netclient.. ENGAGE
[netclient.exe] 2022-07-01 18:33:34 pulled network config for sahnet
[netclient.exe] 2022-07-01 18:33:34 register at https://api.netmaker.redacted:443/api/server/register
[netclient.exe] 2022-07-01 18:33:34 certificates/key saved
[netclient.exe] 2022-07-01 18:33:35 running stop of Windows Netclient daemon
[netclient.exe] 2022-07-01 18:33:36 error running command: "C:\Program Files (x86)\Netclient\winsw.exe" "stop"
[netclient.exe] 2022-07-01 18:33:36 '"C:\Program Files (x86)\Netclient\winsw.exe"' is not recognized as an internal or external command,
 perable program or batch file.
[netclient.exe] 2022-07-01 18:33:36 error with stop of Windows Netclient daemon: exit status 1 : '"C:\Program Files (x86)\Netclient\winsw.exe"' is not recognized as an internal or external command,
operable program or batch file.

[netclient.exe] 2022-07-01 18:33:36 running start of Windows Netclient daemon
[netclient.exe] 2022-07-01 18:33:36 error running command: "C:\Program Files (x86)\Netclient\winsw.exe" "start"
[netclient.exe] 2022-07-01 18:33:36 '"C:\Program Files (x86)\Netclient\winsw.exe"' is not recognized as an internal or external command,
 perable program or batch file.
[netclient.exe] 2022-07-01 18:33:36 error with start of Windows Netclient daemon: exit status 1 : '"C:\Program Files (x86)\Netclient\winsw.exe"' is not recognized as an internal or external command,
operable program or batch file.

[netclient.exe] 2022-07-01 18:33:36 reset network and peer configs
b

bored-island-21407

07/01/2022, 11:37 PM
Try running netclient leave followed by netclient join (with -vvv flags)
Btw, how did you install netclient? With the MSI?
h

high-translator-3408

07/01/2022, 11:39 PM
PS C:\Program Files (x86)\Netclient> netclient join -vvv -t <token>
[netclient.exe] 2022-07-01 18:38:26 netclient.exe is in proper location, C:\Program Files (x86)\Netclient\netclient.exe
2022/07/01 18:38:26 Gravitl Netclient on Windows started
[netclient.exe] 2022-07-01 18:38:26 joining nocnet at api.netmaker.redacted:443
[netclient.exe] 2022-07-01 18:38:26 node created on remote server...updating configs
[netclient.exe] 2022-07-01 18:38:26 starting wireguard
[netclient.exe] 2022-07-01 18:38:26 turn on UDP hole punching (dynamic port setting)? no
[netclient.exe] 2022-07-01 18:38:28 waiting for interface...
file does not exist
[netclient.exe] 2022-07-01 18:38:46 error installing:  could not reliably create interface, please check wg installation and retry
[netclient.exe] 2022-07-01 18:38:46 removed WireGuard interface:  nm-nocnet
yes with an msi
PS C:\Program Files (x86)\Netclient> netclient leave -vvv -n nocnet
[netclient.exe] 2022-07-01 18:37:39 netclient.exe is in proper location, C:\Program Files (x86)\Netclient\netclient.exe
2022/07/01 18:37:39 Gravitl Netclient on Windows started
[netclient.exe] 2022-07-01 18:37:39 deleted node QuantumWave  on network  nocnet
[netclient.exe] 2022-07-01 18:37:39 could not flush peer routes when leaving network,  nocnet
[netclient.exe] 2022-07-01 18:37:39 removed WireGuard interface:  nm-nocnet
[netclient.exe] 2022-07-01 18:37:39 removed  nocnetnetwork locally
[netclient.exe] 2022-07-01 18:37:40 running stop of Windows Netclient daemon
[netclient.exe] 2022-07-01 18:37:40 error running command: "C:\Program Files (x86)\Netclient\winsw.exe" "stop"
[netclient.exe] 2022-07-01 18:37:40 '"C:\Program Files (x86)\Netclient\winsw.exe"' is not recognized as an internal or external command,
 perable program or batch file.
[netclient.exe] 2022-07-01 18:37:40 error with stop of Windows Netclient daemon: exit status 1 : '"C:\Program Files (x86)\Netclient\winsw.exe"' is not recognized as an internal or external command,
operable program or batch file.

[netclient.exe] 2022-07-01 18:37:40 success
forgot to post the leave before the join
b

bored-island-21407

07/01/2022, 11:43 PM
In the netmaker ui change the default port setting for the second network --- or turn on udp hole punching
h

high-translator-3408

07/01/2022, 11:45 PM
Looks like that worked! I didn't even think about that
I think understand why.
wireguard sees them as the same endpoint and wont create a second interface
b

bored-island-21407

07/01/2022, 11:47 PM
But that is a bug, netclient should check if the port is in use and use a different one
Could you please open an issue on github
h

high-translator-3408

07/01/2022, 11:48 PM
gotchya. do you need to me fill out an issue?
yep can do
thank you for your time!
b

bored-island-21407

07/01/2022, 11:48 PM
👍
h

high-translator-3408

07/02/2022, 2:47 AM