My computer has two NICs, each one connects to a different network. The primary one is the gateway 192.168.1.1 that receives one internet connection. The second one is a WiFi Adapter that is connected to ANOTHER network, and that Wireless Connection has a Windows Server 2019 connected to it. The gateway is 192.168.31.254.
When i need to connect to Windows Server 2019 i have to DEACTIVATE the Ethernet adapter and leave only the WiFi on... Then i am able to connect to the server. But then if both of them are enabled when i connect via Remote Desktop Connection it uses the Ethernet adapter as default and i get the error message:
Error code: 0x516
Extended error code: 0x0
Activity Id: ID {9ed47227-be64-436e-ac2f-d85f30fe0000}
How can i connect to my server using the gateway wireless instead of using the ethernet gateway? I would like to access without needing to deactivate the Ethernet Adapter every time.
Its very annoying... Can someone help me?
Edit - Output of route print
Tabela de rotas IPv4
===========================================================================
Rotas ativas:
Endereço de rede Máscara Ender. gateway Interface Custo
0.0.0.0 0.0.0.0 25.0.0.1 192.168.137.1 9256
0.0.0.0 0.0.0.0 192.168.31.254 192.168.31.86 50
0.0.0.0 0.0.0.0 192.168.1.1 192.168.1.100 25
127.0.0.0 255.0.0.0 No vínculo 127.0.0.1 331
127.0.0.1 255.255.255.255 No vínculo 127.0.0.1 331
127.255.255.255 255.255.255.255 No vínculo 127.0.0.1 331
192.168.1.0 255.255.255.0 No vínculo 192.168.1.100 281
192.168.1.100 255.255.255.255 No vínculo 192.168.1.100 281
192.168.1.255 255.255.255.255 No vínculo 192.168.1.100 281
192.168.31.0 255.255.255.0 No vínculo 192.168.31.86 306
192.168.31.86 255.255.255.255 No vínculo 192.168.31.86 306
192.168.31.255 255.255.255.255 No vínculo 192.168.31.86 306
192.168.137.0 255.255.255.0 No vínculo 192.168.137.1 9256
192.168.137.1 255.255.255.255 No vínculo 192.168.137.1 9256
192.168.137.255 255.255.255.255 No vínculo 192.168.137.1 9256
224.0.0.0 240.0.0.0 No vínculo 127.0.0.1 331
224.0.0.0 240.0.0.0 No vínculo 192.168.137.1 9256
224.0.0.0 240.0.0.0 No vínculo 192.168.31.86 306
224.0.0.0 240.0.0.0 No vínculo 192.168.1.100 281
255.255.255.255 255.255.255.255 No vínculo 127.0.0.1 331
255.255.255.255 255.255.255.255 No vínculo 192.168.137.1 9256
255.255.255.255 255.255.255.255 No vínculo 192.168.31.86 306
255.255.255.255 255.255.255.255 No vínculo 192.168.1.100 281
===========================================================================
route print
in cmd.exe. I'm right to assume that your client is also a windows PC (not just the server)?C:\Windows\System32\drivers\etc\hosts
, adding a line likemyserver 192.168.31.x
, wherex
is used by the server?