My computer has two NICs, each one connects to a different network. The primary one is the gateway 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

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
     25      No vínculo    331      No vínculo    331      No vínculo    331      No vínculo    281      No vínculo    281      No vínculo    281      No vínculo    306      No vínculo    306      No vínculo    306      No vínculo   9256      No vínculo   9256      No vínculo   9256      No vínculo    331      No vínculo   9256      No vínculo    306      No vínculo    281      No vínculo    331      No vínculo   9256      No vínculo    306      No vínculo    281
  • 1
    Can you please print the routing table? Ie, running route print in cmd.exe. I'm right to assume that your client is also a windows PC (not just the server)?
    – jvda
    Apr 8 at 13:26
  • 1
    Does it help to create a host-name for the Windows Server 2019 server in C:\Windows\System32\drivers\etc\hosts, adding a line like myserver 192.168.31.x, where x is used by the server?
    – harrymc
    Apr 8 at 14:02
  • Hey @harrymc You mean in the hosts file of my computer or the hosts file of Windows Server? Apr 8 at 14:24
  • @jvda I edited my question with the route print command output Apr 8 at 14:24

From the command line, if you type

mstsc /?

it will list a whole bunch of options. mstsc is the command line name for remote desktop (Microsoft Terminal Server Client). The ones you are interested in are /v and /g. So if you wish to connect to soci it would be

mstsc /v:soci /g:
  • Hi. That command actually makes me try to connect to I dont want to connect to that IP. That IP is the gateway of my modem I want to connect to a server that is connected to the same SUBNET of Apr 8 at 19:51
  • So what is the IP of the windows server?
    – jvda
    Apr 8 at 20:21
  • Use the address of your wireless server in the /g
    – cup
    Apr 9 at 4:54
  • @jvda W Server is Jun 14 at 16:59
  • @cup Ill try this right now and mark as solved if it works! Bro, thanks. Jun 14 at 17:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.