#1
|
|||
|
|||
Add IP:Port of my JD machine to mobile app
Hello, I'd like to submit a suggestion. Add ability to specify IP and port of machine running JD in mobile app (Android, etc). This will allow mobile app connect to my JD machine directly without going to my.jdownloader.org first. This will reduce load on your servers, eliminate an intermediary and make life easier for people that know where their JD machine is.
Thanks, Yuriy Last edited by yurikus; 17.05.2017 at 01:27. |
#2
|
||||
|
||||
For Apps used in Andriod, the API in relay mode is used for authentication purposes, then direct mode is used post authentication. This means you do not need to know the ip:port or open a ip:port on your modem/router.
There are also settings in 'settings > advanced settings' in which you can allow direct connections use filter: myjdownloader MyJDownloaderSettings.directconnectmode MyJDownloaderSettings.manualremoteport MyJDownloaderSettings.manuallocalport please wait for appwork to respond in respects to UI ip:port within Andriod app. raztoki
__________________
raztoki @ jDownloader reporter/developer http://svn.jdownloader.org/users/170 Don't fight the system, use it to your advantage. :] Last edited by raztoki; 17.05.2017 at 01:47. |
#3
|
|||
|
|||
raztoki, thank you for quick response.
I fully understand the purpose of those variables and use them. What I'm suggesting is (for power users) a way skip relay mode entirely if I so choose and direct-connect all the time. Last Andoid app update broke something in the relay discovery and it takes several restarts of the app for it to find my JD machine. It takes time and is annoying. I find it perfectly acceptable to add say, Code:
MyJDownloaderSettings.manualremoteip Thanks, Yuriy |
#4
|
||||
|
||||
hence why I said wait for Appwork to respond as they maintain the Andriod app.
raztoki
__________________
raztoki @ jDownloader reporter/developer http://svn.jdownloader.org/users/170 Don't fight the system, use it to your advantage. :] |
#5
|
||||
|
||||
Enable Direct-Connection Mode. By default it is restricted to LAN only.
https://support.jdownloader.org/Know...anced-settings In Webinterface/App/Advanced Settings you can change mode and then restart JDownloader. Would be nice if you can contact us via support@jdownloader.org if you need further help on this and please report bug with discovery
__________________
JD-Dev & Server-Admin |
#6
|
|||
|
|||
Quote:
Since my router is behind NAT, the port forwarding from my router does not work. The UPNP does not work as well. The relay connection over the official myjd server is too slow at my place. I have a VPS. I can forward my remote port (say 1234) to my VPS server (say 12.34.56.78) using a reverse proxy software (it works like a tunnel: 192.168.2.3:1234 <=> 12.34.56.78:1234). However, MyJD seems to be unable to recognize the 12.34.56.78:1234 as my remote port. 12.34.56.78 is not seen in the "Known IPs". I'm wondering how MyJD figure out the "Known IPs". It will be nice if I can designate the remote port (12.34.56.78:1234) for my MyJD client to connect. Thank you! Last edited by beatleser; 05.06.2019 at 17:46. |
#7
|
||||
|
||||
@beatleser:
Settings-Advanced Settings-MyJDownloaderSettings.customdeviceips StringArray, for example ["192.168.2.10","10.10.10.10"] JDownloader will advertise this IPs with MyJDownloaderSettings.manuallocalport Port, so make sure that this port is forwarded. Instead of reverse proxy, port forwarding doesn't work? how can you connect to your vps then? In case you need further help or got questions about this, you can also contact me via support@jdownloader.org
__________________
JD-Dev & Server-Admin |
#8
|
|||
|
|||
Quote:
Just tried to add my VPS IP to the list, but the myJD web client still connects via the MyJD connection server... |
#9
|
|||
|
|||
Quote:
The default value is NULL Shall I also add my remote port to this field? (I've already set my remote port and set the port forwarding mode in JD.) What's the format for this setting? |
#10
|
|||
|
|||
Quote:
Another question, will exposing the local port be vulnerable and cause safety issue? |
#11
|
||||
|
||||
Thanks for the info about frp, so I guess easy port forwarding isn't possible then on your VPS provider?
__________________
JD-Dev & Server-Admin |
#12
|
||||
|
||||
I can't speak for the used frp tool but on JDownloader side there is just JDownloader listening on that port, using encrypted protocol and only able to talk to JDownloader api
__________________
JD-Dev & Server-Admin |
#13
|
||||
|
||||
Great, Thanks for the feedback
__________________
JD-Dev & Server-Admin |
#14
|
||||
|
||||
leave them to defaults, they specify the ports of the MyJDownloader relay server
__________________
JD-Dev & Server-Admin |
#15
|
|||
|
|||
Yes, the NAT type on my ISP is Port Restricted Cone. It should be capable of using UPNP, but it never works for me. So I bought a cheap VPS in order to have a static public IP address.
|
#16
|
|||
|
|||
Great, that will be nice.
|
#17
|
||||
|
||||
Ah, now I understand Thanks for clarification!
__________________
JD-Dev & Server-Admin |
#18
|
|||
|
|||
That's useful, thanks!
|
|
|