Giter VIP home page Giter VIP logo

Comments (6)

drauggres avatar drauggres commented on July 26, 2024

Hi. This modified version of scrcpy is listening for connections on all interfaces on TCP port 8886. That is why it is working also with port forwarding. And, in theory, you should be able connect to it over "mobile data".
The undefined instead of IP address shows up because this script tries to detect only IP address on wlan0 interface (that is default name for Wi-Fi). For Mobile data interface name is usually rmnet0.

P.S. There is no autorization or encription between client and server, using it on devices connected to the Internet could be dangerous.

from ws-scrcpy.

sheshnath1st avatar sheshnath1st commented on July 26, 2024

Hi.
Nice to talk you but I have changed as you mentioned but still I am getting the problem so please check the screenshot and suggest me.
Screen Shot 2020-04-17 at 5 39 50 PM

from ws-scrcpy.

drauggres avatar drauggres commented on July 26, 2024

Try to run adb shell ifconfig and/or adb shell ip route without and with enabled mobile data.
You will see what interface changes its status and also IP address assigned to it.
Then try to manually specify the address in WebSocket URL input and connect to device.
There is a chance that mobile operator will block the connection, but if it will work, then next step will be to figure out how to parse this IP address from adbs output.

from ws-scrcpy.

sheshnath1st avatar sheshnath1st commented on July 26, 2024

Screen Shot 2020-04-22 at 12 57 25 PM

I have try it manually butI can get IP(192.0.0.4) of device and this ip is put into WebSocket URL but I am getting the screen like attachment.and it is not able to connect so can you suggest me how can I do it?

from ws-scrcpy.

drauggres avatar drauggres commented on July 26, 2024

You need rmnet0 and IPv6 address from inet6 addr, look at the TX and RX values almost all traffic is going through it.
This also means that you will need IPv6 on your mac.

from ws-scrcpy.

drauggres avatar drauggres commented on July 26, 2024

FYI: in v0.6.0 all interfaces (with ipv4 address) are shown in the devices list (and UI has changed a lot since april).
In case you are really need to use connection via mobile data interface (without connecting a device with adb): not sure if I can do anything here, so I'm going to close this issue.

from ws-scrcpy.

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.