java.net.SocketException: Permission denied: connect

Any questions? Need some help?
Post Reply
MarFilot
Posts: 34
Joined: 18 Nov 2014, 12:10

java.net.SocketException: Permission denied: connect

Post by MarFilot »

I'm getting the following code below when I run my scripts:

SCRIPTS

Code: Select all

@title Rename Anime (AniDB_TVDB)_filter (7 days)

@echo off

filebot -script fn:renall "C:/Users/MarHutchy/Downloads/uTorrent's Downloads/ANIME_Filebot (AniDB_TVDB)" -non-strict --db AniDB --filter "age < 7" & filebot -script fn:renall "C:/Users/MarHutchy/Downloads/uTorrent's Downloads/ANIME_Filebot (AniDB_TVDB)" -non-strict --db TheTVDB --format "C:/Users/MarHutchy/Downloads/ANIME/{n}/Season {s.pad(2)}/{n} - {s00e00} - {t}" --filter "age < 7"

pause

Code: Select all

@title Rename Anime (TVDB)_filter (7 days)

@echo off

filebot -script fn:renall "C:/Users/MarHutchy/Downloads/uTorrent's Downloads/ANIME_Filebot (TVDB)" -non-strict --db TheTVDB --format "C:/Users/MarHutchy/Downloads/ANIME/{n}/Season {s.pad(2)}/{n} - {s00e00} - {t}" --filter "age < 7"

pause
ERROR

Code: Select all

Fetch failed: Permission denied: connect
Permission denied: connect
java.net.SocketException: Permission denied: connect
        at net.filebot.web.WebRequest.fetch(WebRequest.java:138)
        at net.filebot.CachedResource.lambda$fetchIfModified$8(CachedResource.java:185)
        at net.filebot.CachedResource.lambda$null$0(CachedResource.java:82)
        at net.filebot.CachedResource.retry(CachedResource.java:111)
        at net.filebot.CachedResource.lambda$get$1(CachedResource.java:82)
        at net.filebot.Cache.computeIf(Cache.java:75)
        at net.filebot.CachedResource.get(CachedResource.java:77)
        at net.filebot.MemoizedResource.get(Resource.java:36)
        at net.filebot.cli.ScriptBundle.getScript(ScriptBundle.java:34)
        at net.filebot.cli.ScriptShell.runScript(ScriptShell.java:72)
        at net.filebot.cli.ArgumentProcessor.runScript(ArgumentProcessor.java:114)
        at net.filebot.cli.ArgumentProcessor.run(ArgumentProcessor.java:29)
        at net.filebot.Main.main(Main.java:123)
Caused by: java.net.SocketException: Permission denied: connect
        at net.filebot.web.WebRequest.fetch(WebRequest.java:135)
        ... 12 more
Failure (°_°)
The error within FileBot is
Image

I added FileBot to the firewall exception list--because it wasn't there--, but that didn't help.

I have downloaded the latest files for April 22nd.

After the reinstallation I had to manually create an envitonmental variable for Filebot.
Image
User avatar
rednoah
The Source
Posts: 22994
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Getting Error

Post by rednoah »

FAQ wrote:Q: FileBot can't connect to any of the webservices. It's not firewall issue. What else can I try?
Your IPv6 network config is broken, try forcing IPv4:

Code: Select all

-Djava.net.preferIPv4Stack=true
If that doesn't work. Try Google. It's not a FileBot-specific problem, so you'll find lots of help on Google.
:idea: Please read the FAQ and How to Request Help.
MarFilot
Posts: 34
Joined: 18 Nov 2014, 12:10

Re: java.net.SocketException: Permission denied: connect

Post by MarFilot »

I fixed it. I didn't turn off the firewall - well I did, but I tried with the app directly and not the cmdline.

So to be clear, turning off my firewall fixed the problem, but will I have to do that every time?
Image
User avatar
rednoah
The Source
Posts: 22994
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: java.net.SocketException: Permission denied: connect

Post by rednoah »

Well, just make sure that it's not blocking FileBot from making network requests. I'm sure there's settings for that.
:idea: Please read the FAQ and How to Request Help.
User avatar
rednoah
The Source
Posts: 22994
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: java.net.SocketException: Permission denied: connect

Post by rednoah »

FAQ wrote:Q: FileBot can't connect to any of the webservices. It's not firewall issue. What else can I try?
Problems have been reported by people using IPv6 with Java 7 on Windows 8. If you get BindException: Cannot assign requested address: connect or SocketException: Connection reset or anything like that you can try forcing Java to use IPv4. Just set java.net.preferIPv4Stack in the *.l4j.ini file.

Code: Select all

-Djava.net.preferIPv4Stack=true
I guess if forcing IPv4 makes it work, then there's something broken with the IPv6 network configuration.
:idea: Please read the FAQ and How to Request Help.
Post Reply