Change ADB forward ports
Hi,
i am trying to run an Android Xamarin.UiTest. From time to time i get the ADB Error below. (Sometimes it works when i restart my PC)
For some reasons the TCP Port 50412 seems to be blocked. If i start the command over a CMD with TCP 30000 for example, then it seems to work.
But Rider always uses the Port 50412. Is there a way to change this port in the IDE settings or in an other config ?
In the Rider ADB settings the option “Automatically start and manage server” is active. I tried using the option “use existing manually managed server” and the in the CMD i set the forward to 30000. But this also did not work. When i start the UITest over Rider the forward is 50412 again.
Failed to execute: C:\Program Files (x86)\Android\android-sdk\platform-tools\adb.exe -s emulator-5554 forward tcp:50412 tcp:50412 - exit code: 1
adb.exe: error: cannot bind listener: cannot bind to 127.0.0.1:50412: Der Zugriff auf einen Socket war aufgrund der Zugriffsrechte des Sockets unzulässig. (10013)
Please sign in to leave a comment.
Hello J Pfander ,
Thank you for reaching Rider Forum.
It seems that in your case, the setting of Build-in Server Port in Settings | Build, Execution, Deployment | Debugger does not work. I have created a bug with ID:
https://RIDER-106313 Cannot bind listener: cannot bind to 127.0.0.1:50412 Android
Please upvote it for further updates.
Should you have any questions, please let me know.