You can run every command of adb by selecting the device by deviceID.
run command to get Device Id:
adb devices
you will get the list of all available devices something like this:
device
emulator-5554 offline
the copy the device id run commad like this:
adb -s
example:
adb -s tcpip 5555
OR
adb -s forward tcp:59900 tcp:59900
this will not get the error like "more than one device/emulator"
Thanks