Comments (6)
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.
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.
from ws-scrcpy.
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 adb
s output.
from ws-scrcpy.
from ws-scrcpy.
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.
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)
- Not able to use remotelly HOT 1
- rotation HOT 3
- Embedding in a project
- error while setting up HOT 2
- Error when pull files from sdcard folder in "list files" HOT 4
- The service crashed because of an error HOT 2
- REQUEST HELP - With spread action from one to multiple devices
- "createSetClipboardCommand" HOT 2
- issues with Android 14 HOT 8
- 这么传文件啊,就只有浏览器打开adb怎么连接 HOT 2
- unable to start project HOT 4
- TS2344: Type 'TE' does not satisfy the constraint 'EventMap'.
- Not able to use Remotely HOT 1
- Not be able to start app
- [StreamReceiver]. WS closed unexpectedly after a while HOT 1
- Cannot display adb connected devices HOT 1
- can't configure stream HOT 6
- Firefox exhibits lag when using player=mse (H264 Converter)
- can not restart device scrcpy server via adb wifi connection
- Issue with Android 14 display in pixel device HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ws-scrcpy.