The trick is to change the network card priority so that the wireless connection remains active when a wired connection is made.
The first step is to get to the "Control Panel > Network and Internet > Network and Sharing Center" page. On the left side of that page, click the link "Change adapter settings". This should bring you to the "Control Panel > Network and Internet > Network Connections >" page.
Select the wireless connection, right-click "Properties", and provide an admin password (if necessary). This should bring you to a dialog box named [wireless connect name] Properties".
In the list box titled "This connection uses the following items:", scroll down to "Internet Protocol Version 4 (TCP/IPv4)" and select it. The "Properties" command button will enable; click it. This should bring you to a dialog box named "Internet Protocol Version 4 (TCP/IPv4) Properties".
Click the "Advanced" command button. This should bring you to a dialog box named "Advanced TCP/IP Settings".
Near the bottom of the dialog box, there should be a check box named "Automatic metric". Uncheck it. That will enable a text box named "Interface metric". Fill in a number. It needs to be larger than 1 (reserved for loopback) and the number you choose for the wired network (see below).
Click three "OK" command buttons to return to the "Control Panel > Network and Internet > Network Connections >" page.
Repeat the above for the wired connection:
Select the wired connection, and right-click "Properties" to get to the [wired connection name] Properties" dialog box.
Select the IPv4 list entry and click "Properties", and on the next dialog box click "Advanced".
Again Uncheck "Automatic metric", and fill in a number in the "Interface metric" box. It needs to be larger than 1 but smaller than the number you chose above.
I would assume that it's also possible to give the wired network higher priority than the wireless, but I didn't test that.
You can also convert wifi to ethernet or vice versa.
To know more about it read
https://zappedia.com/wifi-to-ethernet-bridge/