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 ID> device
emulator-5554 offline
the copy the device id run commad like this:
adb -s <device ID> <your command>
example:
adb -s <device ID> tcpip 5555
OR
adb -s <device ID> forward tcp:59900 tcp:59900
this will not get the error like "more than one device/emulator"
Thanks