Search Through Proxy

All your suggestions, requests and ideas for future development
Post Reply
shanudepp
Posts: 3
Joined: 08 Jan 2012, 14:00

Search Through Proxy

Post by shanudepp »

Well, In my campus browsing is through proxy..so i want to know how to add proxy settings in filebot so that its able to search
User avatar
rednoah
The Source
Posts: 22998
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Search Through Proxy

Post by rednoah »

Set up the Proxy through Java Settings panel and it'll work with all Java applications including FileBot.
:idea: Please read the FAQ and How to Request Help.
shanudepp
Posts: 3
Joined: 08 Jan 2012, 14:00

Re: Search Through Proxy

Post by shanudepp »

I did the settings but filebot is still not connecting..Says connection reset
User avatar
rednoah
The Source
Posts: 22998
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Search Through Proxy

Post by rednoah »

If the Java Control Panel proxy settings don't work you can try setting the proxy specifically for FileBot via Java properties.

filebot.launcher.l4j.ini

Code: Select all

-Dhttp.proxyHost=localhost 
-Dhttp.proxyPort=8888
Add those lines to the .l4j.ini GUI launcher settings.
:idea: Please read the FAQ and How to Request Help.
shanudepp
Posts: 3
Joined: 08 Jan 2012, 14:00

Re: Search Through Proxy

Post by shanudepp »

thanx..it worked
jeffshead
Posts: 5
Joined: 27 Aug 2016, 16:50

Re: Search Through Proxy

Post by jeffshead »

It appears that neither method is working for me. I tried both. If I disable my proxy, I can still connect. Shouldn't the connection time out if the proxy is disabled?

I want all FileBot traffic to use the proxy and fail if the proxy is down. Is this not achievable?

I do not want to make all Java traffic use the proxy. Are there any other lines in filebot.launcher.l4j.ini that need to be edited other than adding the following:

Code: Select all

-Dhttp.proxyHost=localhost 
-Dhttp.proxyPort=8888
User avatar
rednoah
The Source
Posts: 22998
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Search Through Proxy

Post by rednoah »

It'll auto-detect your system proxy by default. So none of this is necessary as long as you've set your proxy in the Windows settings.

All network options for your reference:
http://docs.oracle.com/javase/7/docs/ap ... rties.html

I don't think there is any options that would make it fail if the proxy is down. It'll default to your default gateway.
:idea: Please read the FAQ and How to Request Help.
sinamomken
Posts: 2
Joined: 02 Oct 2016, 04:43

Re: Search Through Proxy

Post by sinamomken »

Hello rednoah

I have the exact problem of using Internet through a proxy in Filebot. I use Ubuntu linux and I installed filebot_4.7.2_amd64.deb from http://filebot.net. It works fine except that I can't force it to use my proxy.

Because it is Ubuntu (not Windows), there is no filebot.launcher.l4j.ini file available to insert -Dhttp parameters in it. But I found Filebot starting script in Ubuntu located in /usr/share/filebot/bin/filebot.sh. I edited 'filebot.sh' to look like script below, but even then it doesn't load themoviedb.org (which is filtered in my network and can be accessed with my proxy):

Code: Select all

#!/bin/sh
APP_ROOT="/usr/share/filebot"

if [ -z "$HOME" ]; then
	echo '$HOME must be set'
	exit 1
fi

# add APP_ROOT to LD_LIBRARY_PATH
if [ ! -z "$LD_LIBRARY_PATH" ]; then
	export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$APP_ROOT"
else
	export LD_LIBRARY_PATH="$APP_ROOT"
fi

# select application data folder
APP_DATA="$HOME/.filebot"

java -Dhttp.proxyHost=localhost -Dhttp.proxyPort=8580 -Dunixfs=false -DuseGVFS=true -DuseExtendedFileAttributes=true -DuseCreationDate=false -Djava.net.useSystemProxies=false -Djna.nosys=true -Dapplication.deployment=deb "-Dapplication.dir=$APP_DATA" "-Djava.io.tmpdir=$APP_DATA/temp" "-Dnet.filebot.AcoustID.fpcalc=$APP_ROOT/fpcalc" $JAVA_OPTS -jar "$APP_ROOT/FileBot.jar" "$@"
What is the problem? (I suspect that Filebot doesn't use my proxy at all).
What can I do to solve it or at least diagnose more accurately?

Regards,
-- Sina Momken
User avatar
rednoah
The Source
Posts: 22998
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Search Through Proxy

Post by rednoah »

Editing filebot.sh is NOT RECOMMENDED.


1.
You just need to set JAVA_OPTS before running filebot:

Code: Select all

export JAVA_OPTS="-Dhttp.proxyHost=localhost -Dhttp.proxyPort=80 -Dhttps.proxyHost=localhost -Dhttps.proxyPort= 443"
Note that you need to set HTTP and HTTPS proxies if you want to proxy both HTTP and HTTPS connections. You may wanna add that to your ~/.profile or system profile.


2.
If you want Java to use your system proxies, then you probably shouldn't set -Djava.net.useSystemProxies=false right?

Code: Select all

export JAVA_OPTS="-Djava.net.useSystemProxies=true"
:idea: Please read the FAQ and How to Request Help.
sinamomken
Posts: 2
Joined: 02 Oct 2016, 04:43

Re: Search Through Proxy

Post by sinamomken »

Hello again and thank you very much for reply.

1. My main problem was that I had not set HTTPS proxy and https://www.themoviedb.org/ is hosted over HTTPS. I inserted options below (for free FreeGate proxy) and it worked:

Code: Select all

-Dhttp.proxyHost=localhost -Dhttp.proxyPort=8580 -Dhttps.proxyHost=localhost -Dhttps.proxyPort=8580
About exporting JAVA_OPTS or inserting them in ~/.profile, I don't like your options. Exporting JAVA_OPTS needs always running filebot from terminal, and setting it in ~/.profile will put other java programs behind proxy too (which I don't want because proxies increase delay).

2. I don't understand why should I use -Djava.net.useSystemProxies=true ? I don't have any system proxies and I don't know how to set them in Ubuntu. Anyway after changing it (in filebot.sh) to true or false I couldn't notice any difference!
User avatar
rednoah
The Source
Posts: 22998
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Search Through Proxy

Post by rednoah »

1.
I'd make my own shell script filebot-with-proxy:

Code: Select all

export JAVA_OPTS="..."
filebot
Modifying filebot.sh is not a good idea if you ever plan on updating filebot. Not ever updating filebot is also not a good idea. ;)


2.
If you don't care for using system proxy settings then you can just pass then in directly of course. java.net.useSystemProxies has no effect if you pass in your own settings, probably.
:idea: Please read the FAQ and How to Request Help.
Post Reply