adb kill-server
adb connect <%TARGET_PC_IP_OR_HOSTNAME%>:<%EMULATOR_PORT%>
for emulator on my pc it was
adb kill-server
adb connect localhost:5555
Source: stackoverflow.com
adb kill-server
adb connect <%TARGET_PC_IP_OR_HOSTNAME%>:<%EMULATOR_PORT%>
adb kill-server
adb connect localhost:5555
http://hosting.gmodules.com/ig/gadgets/file/108306549906760602918/gadgetforgoogleio.xml