Change ADB forward ports


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 Der Zugriff auf einen Socket war aufgrund der Zugriffsrechte des Sockets unzulässig. (10013)


Please sign in to leave a comment.