JDownloader Community - Appwork GmbH
 

Go Back   JDownloader Community - Appwork GmbH > English Support > Suggestions & Requests
Reply
 
Thread Tools Display Modes
  #1  
Old 17.05.2017, 01:25
yurikus
Guest
 
Posts: n/a
Lightbulb 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.
Reply With Quote
  #2  
Old 17.05.2017, 01:39
raztoki's Avatar
raztoki raztoki is offline
English Supporter
 
Join Date: Apr 2010
Location: Australia
Posts: 17,614
Default

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.
Reply With Quote
  #3  
Old 17.05.2017, 01:46
yurikus
Guest
 
Posts: n/a
Default

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
in advanced settings only, where I put my external IP and be happy about it.

Thanks,
Yuriy
Reply With Quote
  #4  
Old 17.05.2017, 02:08
raztoki's Avatar
raztoki raztoki is offline
English Supporter
 
Join Date: Apr 2010
Location: Australia
Posts: 17,614
Default

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. :]
Reply With Quote
  #5  
Old 17.05.2017, 14:17
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,563
Default

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
Reply With Quote
  #6  
Old 05.06.2019, 17:36
beatleser
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by Jiaz View Post
Enable Direct-Connection Mode. By default it is restricted to LAN only.
**External links are only visible to Support Staff**...
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
Is it possible to assign the remote IP?
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.
Reply With Quote
  #7  
Old 05.06.2019, 17:57
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,563
Default

@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
Reply With Quote
  #8  
Old 05.06.2019, 19:17
beatleser
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by Jiaz View Post
@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
Thank you. I am using a reverse proxy software called frp (**External links are only visible to Support Staff****External links are only visible to Support Staff**). It work as port forwarding to the vps's port.

Just tried to add my VPS IP to the list, but the myJD web client still connects via the MyJD connection server...
Reply With Quote
  #9  
Old 05.06.2019, 19:33
beatleser
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by Jiaz View Post
@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
I also found a setting:"MyJDownloaderSettings: Device Connect Ports"
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?
Reply With Quote
  #10  
Old 05.06.2019, 19:44
beatleser
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by Jiaz View Post
@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
My bad, I forwarded the remote port rather than local port. Now I forward the local port and the direct connection works! Thanks!

Another question, will exposing the local port be vulnerable and cause safety issue?
Reply With Quote
  #11  
Old 06.06.2019, 10:01
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,563
Default

Thanks for the info about frp, so I guess easy port forwarding isn't possible then on your VPS provider?
__________________
JD-Dev & Server-Admin
Reply With Quote
  #12  
Old 06.06.2019, 10:05
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,563
Default

Quote:
Originally Posted by beatleser View Post
Another question, will exposing the local port be vulnerable and cause safety issue?
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
Reply With Quote
  #13  
Old 06.06.2019, 10:05
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,563
Default

Quote:
Originally Posted by beatleser View Post
My bad, I forwarded the remote port rather than local port. Now I forward the local port and the direct connection works! Thanks!
Great, Thanks for the feedback
__________________
JD-Dev & Server-Admin
Reply With Quote
  #14  
Old 06.06.2019, 10:06
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,563
Default

Quote:
Originally Posted by beatleser View Post
I also found a setting:"MyJDownloaderSettings: Device Connect Ports"
leave them to defaults, they specify the ports of the MyJDownloader relay server
__________________
JD-Dev & Server-Admin
Reply With Quote
  #15  
Old 06.06.2019, 16:23
beatleser
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by Jiaz View Post
Thanks for the info about frp, so I guess easy port forwarding isn't possible then on your VPS provider?
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.
Reply With Quote
  #16  
Old 06.06.2019, 16:25
beatleser
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by Jiaz View Post
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
Great, that will be nice.
Reply With Quote
  #17  
Old 06.06.2019, 16:35
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,563
Default

Quote:
Originally Posted by beatleser View Post
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.
Ah, now I understand Thanks for clarification!
__________________
JD-Dev & Server-Admin
Reply With Quote
  #18  
Old 02.10.2019, 18:39
yurikus
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by Jiaz View Post
@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.
That's useful, thanks!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 14:58.
Provided By AppWork GmbH | Privacy | Imprint
Parts of the Design are used from Kirsch designed by Andrew & Austin
Powered by vBulletin® Version 3.8.10 Beta 1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.