Comments (9)
There's a project called noVNC. You can try it.
I know it and worked with it. It's a client. I was htinking about LibVNCServer here.
from droidvnc-ng.
@bk138 thanks for the quick reply, yea I implemented it using the example described in the LibVNCServer readme. No worries I'll let you know if I find something to get it to work!
from droidvnc-ng.
There's a project called noVNC. You can try it.
from droidvnc-ng.
For Alternative way, Convert TCP into WS, Because noVNC Websockify is doing that.
from droidvnc-ng.
LibVNCServer has native WebSockets support, so this issue here should be easy to tackle.
from droidvnc-ng.
Ah yes! You're right!
from droidvnc-ng.
Hi @bk138 any progress on this? I'm trying to implement the websockets support using LibVNCServer
but the HTTP connections are not reaching the HTTP server somehow... (the VNC server over TCP works though)
So what I've tried so far is copying the contents of the webclients dir from the assets folder to external storage /storage/emulated/0/webclients
on startup of the app (just for testing). And in droidvnc-ng.c
I'm setting:
theScreen->alwaysShared = TRUE;
theScreen->httpDir = "/storage/emulated/0/webclients";
theScreen->httpEnableProxyConnect = TRUE;
theScreen->httpPort = 8080;
theScreen->http6Port = 8080;
and after rbInitServer(theScreen)
I'm checking the sockets:
if(theScreen->httpListenSock == RFB_INVALID_SOCKET || theScreen->httpListen6Sock == RFB_INVALID_SOCKET) {
__android_log_print(ANDROID_LOG_ERROR, TAG, "vncStartServer: httpListenSock failed starting (%s)", strerror(errno));
Java_net_christianbeier_droidvnc_1ng_MainService_vncStopServer(env, thiz);
return JNI_FALSE;
}
The console prints:
Listening for HTTP connections on TCP port 8080
URL http://localhost:8080
Listening for HTTP connections on TCP6 port 8080
URL http://localhost:8080
vncStartServer: successfully started
as if everything is running fine, but if I try to connect to http://ipofmyphone:8080 via the browser the requests seem to not even reach the app (no log output, etc. it just loads forever). Any ideas?
from droidvnc-ng.
I can at for the time being only point you at https://github.com/LibVNC/libvncserver#using-websockets for a working WebSockets example, I won't be able to spend time on this here issue in the upcoming weeks.
from droidvnc-ng.
- update libvncserver code according to LibVNC/libvncserver#492, re make & run app in your phone,
- try to connect http://ipofmyphone:5900/ with novnc, 5900 is default vnc port, you may found remote window in your browser,
- i guess libvncserver implemented some port multiplexing mechanism.
from droidvnc-ng.
Related Issues (20)
- Input Permissions Denied, no option to allow HOT 2
- Build Issues on Windows with Android NDK and CMake HOT 1
- How can I connect to two android devices when them are not in same local area network? HOT 3
- VNC Input not working but still able to see whats on the screen HOT 6
- Use AccessibilityService takeScreenshot API on API level >= 10 to show screen before MediaProjection is enabled
- Streaming of single app: restrict input to that app HOT 3
- Add "Restrictions" for configuring app-settings by MDM HOT 12
- sometimes when launch service with adb, the controler can not access to touch the whole screen HOT 2
- Prepare for Android 14
- droidvnc-ng can not reconnect and maintain the connection using repeater
- Viewing video of a channel from Android TV 11 HOT 3
- Does not work under Android 14 HOT 5
- Notification Sound HOT 2
- Remove confirmation at start HOT 3
- Need Cut and Paste HOT 1
- Explore use of API 33 methods to overcome Android limitiation where for some text fields only single character can be entered HOT 6
- Remote Input does not work on ChromeOS. HOT 1
- Make it possible to record phone unlock screen HOT 1
- Mouse clicks freeze connection for 1 second each and are not sent (Android 10) HOT 3
- Port it to magisk module / using root access HOT 1
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 droidvnc-ng.