You need to have a DHCP server on your local network so that your virtual device get an IP address within your local network.
- Set your virtual device Network mode to Bridged. See Configuring a Virtual Device
- Retrieve the virtual device IP address. It is displayed on top of the virtual device window:
- From another computer, open a command prompt and run
adb connect <virtual_device_IP>:5555