Cannot start appium local service/server

Hi,

I cannot start Appium local service on one of my PCs:

I can run it on my local PC, but the PC I’m running it on now might require some proxy settings I suspect to have it working?

public static void StartAppiumServer()
{
var file = “C:\Temp\AppiumLog_” + DateTime.Now.ToString(“yyyyMMdd_HHmmss”) + “.txt”;

var options = new OptionCollector();
options.AddArguments(new KeyValuePair<string, string>("-pa", "/wd/hub"));

AppiumLocalService = new AppiumServiceBuilder()
    .WithIPAddress(AppiumServer)
    .UsingPort(Port.ConvertToInt())
    .WithArguments(options)
    .WithLogFile(new FileInfo(file))
    .Build();
AppiumLocalService.Start();

Log.Information("Appium server log can be found at {location}", file);

}

I’ve also tested with not adding /wd/hub options. I’ve also tested with adding WithAppiumJS.

The log generated by this looks good to me:

However, I can start the Appium server via “appium” in cmd, but then I cannot start the driver via Driver = new AndroidDriver(new Uri(“127.0.0.1:4723/”), options, TimeSpan.FromMinutes(5)); I’ve also tried with adding “/wd/hub”. The error I get is:
image

Does anyone know the reason for this? I’ve previously run my tests on BrowserStack and there it works fine. Now I wanna run them on my local phone via another PC.

Variables and versions:
image

image
image
image
image

image

Appium WebDriver 5.0.0-rc2

Solution: set a “no_proxy” environment variable