Jump to content
This site uses cookies! Learn More

This site uses cookies!

armedunity.com uses cookies to improve user experience.

By continuing to use this site, you agree to allow us to store cookies on your computer.

  • 0

Failed to set up port forwarding


Hi, I am a newby in developing using unity (and all round newby in programming as well), just learned it a month ago. I have been making this VR and it has always shown the error android adb debug not found. Today, I installed it and that error is no longer there but there is this error showing:


Failed to setup port forwarding. Exit code 1 returned by process: CMD.exe /k adb forward tcp:7003 tcp:7003 & exit
error: unknown host service

  at Gvr.Internal.EmulatorClientSocket.setupPortForwarding (Int32 port) [0x0011d] in D:\New Project\Assets\GoogleVR\Scripts\Controller\Internal\Emulator\EmulatorClientSocket.cs:159 
  at Gvr.Internal.EmulatorClientSocket.phoneConnect () [0x00039] in D:\New Project\Assets\GoogleVR\Scripts\Controller\Internal\Emulator\EmulatorClientSocket.cs:97 
  at Gvr.Internal.EmulatorClientSocket.phoneEventSocketLoop () [0x00017] in D:\New Project\Assets\GoogleVR\Scripts\Controller\Internal\Emulator\EmulatorClientSocket.cs:73 
UnityEngine.Debug:LogWarningFormat(String, Object[])
Gvr.Internal.EmulatorClientSocket:phoneEventSocketLoop() (at Assets/GoogleVR/Scripts/Controller/Internal/Emulator/EmulatorClientSocket.cs:76)


After setting up adb debug, GVRControllerPointer does not work. The GVREditorEmulator does work though.


can anyone help me?

Please login or register to see this link.

Share this post

Link to post
Share on other sites

0 answers to this question

Recommended Posts

  • 0

It could mean there is already an adb process running. If so, kill the process and try again.

e.g., on unix/mac:


ps -ef | grep "adb"

  502 29222     1   0  4:45pm ??         0:07.69 adb -P 5037 fork-server server --reply-fd 4

  502 34714 60008   0  5:30pm ttys000    0:00.00 grep adb


shows the adb proces is running, so I issue the command to kill it:

 kill -9 29222


listing processes shows it is not there anymore

 ps -ef | grep "adb"

  502 34718 60008   0  5:31pm ttys000    0:00.00 grep adb



Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...