Giter VIP home page Giter VIP logo

Comments (10)

NickAb avatar NickAb commented on May 8, 2024 3

The fact that it requires admin privileges to bind to non localhost suggests that driver might be using http.sys. It seems that it is possible to specify IP address as *. In that case driver will listen both on localhost and external ip address of you host machine. I've tried it locally and from the same machine I was able to get response both to http://localhost:5000/status and http://10.211.55.6:5000/status (IP option was set to *, port option was set to 5000).

from winappdriver.

paulcam206 avatar paulcam206 commented on May 8, 2024 1

By default we don't want to bind to external-facing network interfaces for security reasons. It's by design that we're not remotely accessible.

from winappdriver.

denys-rwd avatar denys-rwd commented on May 8, 2024

Any update?

from winappdriver.

alakshmi1030 avatar alakshmi1030 commented on May 8, 2024

Just to clarify - you have installed WinAppDriver on a Surface and you are targeting that machine from a Remote selenium client. Could you specify some cURL commands you are using from the remote client to target your WinAppDriver server so that we can try and repro the issue?

from winappdriver.

denys-rwd avatar denys-rwd commented on May 8, 2024

Test - Open app

DesiredCapabilities capabilities = new DesiredCapabilities(); capabilities.setCapability("app", "Microsoft.WindowsCalculator_8wekyb3d8bbwe!App"); rwd = new RemoteWebDriver(new URL("http://172.30.201.161:4723/wd"), capabilities);

Issue
If WinAppDriver runs without input parameters, it starts automatically with 127.0.0.1.
image
In the case, the test from remote machine FAILED.
In the case, the test from local (where WinAppDriver is running) machine SUCCESS.

If WinAppDriver gets IP Address as a input parameter.
image
In the case, the test from remote machine is SUCCESS.

Question
Why to provide IP Address? IMO, Server must get a PORT only.

from winappdriver.

denys-rwd avatar denys-rwd commented on May 8, 2024

I closed it by mistake. It is still relevant.

from winappdriver.

denys-rwd avatar denys-rwd commented on May 8, 2024

Can you please consider to provide a new setting option?

The option allows to set security mode. By default, it will be secured (local). User can easy change it to unsecured (external) without providing external-facing IP Address.

In my case, external IP address may change after restart. I don't want to update batch file on each restart. The above option will avoid redundant maintenance of batch file.

Thanks in advance

from winappdriver.

denys-rwd avatar denys-rwd commented on May 8, 2024

Another strange case.
If WinAppDriver is configured with external IP address and you run a test from LOCAL machine (where WinAppDriver is running) then

Test with connect string that contains 172.30.201.161 will SUCCESS
new RemoteWebDriver(new URL("http://172.30.201.161:4723/wd"), capabilities);

Test with connect string that contains 127.0.0.1 will FAIL
new RemoteWebDriver(new URL("http://127.0.0.1:4723/wd"), capabilities);

WDYT? Security :) ?

Thanks in advance

from winappdriver.

denys-rwd avatar denys-rwd commented on May 8, 2024

I will try. The /status URL works. Unfortunately, I can't check E2E scenario as WinAppDriver fail to run Application.
I opened new issue on that.
Thanks again

from winappdriver.

denys-rwd avatar denys-rwd commented on May 8, 2024

Thanks to NiackAb, the issue is closed.
Thanks again

from winappdriver.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.