Can we change the default port of 58526 in the Windows SubSystem

Steve T 20 Reputation points
2023-07-10T20:49:06.7533333+00:00

We are attempting to run automation on an Android 'device' using the WIndows SubSystem and the default port is 58526 but we would prefer it to be 5555.
Is there a way to change the port?
Thx

Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
10,663 questions
{count} votes

Accepted answer
  1. Hania Lian 21,181 Reputation points Microsoft Vendor
    2023-07-11T06:03:53.9566667+00:00

    Hi @Steve T

    Yes, it is possible to change the port for running automation on an Android device using the Windows SubSystem. You can change the port by running the following command in the command prompt to change the port to 5555:

    adb tcpip 5555

    Best Regards,

    Hania Lian

    ============================================
    If the Answer is helpful, please click "Accept Answer" and upvote it.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.