Loopback Connection Error

I have probably one of the strangest problems with Java. I tried to run some application, say Wrapper (i.e. I2P Router) and got the following:

router log file -

03.12.12 21:07:31 ERROR [JobQueue 1/1] p.router.transport.UPnPManager: UPnP start failed - port conflict? 03.12.12 21:07:31 CRIT [JobQueue 1/1] ter.transport.ntcp.EventPumper: Error opening the NTCP selector java.io.IOException: Unable to establish loopback connection Caused by: java.net.SocketException: Permission denied: listen 

-component of the wrapper journal -

 2012/12/02 14:28:29 | Unable to bind routerconsole to 127.0.0.1 port 7657: java.net.SocketException: Permission denied: listen failed 2012/12/02 14:28:29 | You may ignore this warning if the console is still available at http://localhost:7657 2012/12/02 14:28:30 | WARNING: Error starting SelectChannelConnector@ ::1:7657: java.io.IOException: Unable to establish loopback connection 2012/12/02 14:28:30 | java.io.IOException: Unable to establish loopback connection 2012/12/02 14:28:30 | WARNING: Error starting one or more listeners of the Router Console server. 2012/12/02 14:36:41 | CRIT [istener:7654] er.client.ClientListenerRunner: I2CP error listening to port 7654 - is another I2P instance running? Resolve conflicts and restart 

At the developer forum, they told me that itโ€™s possible that I donโ€™t have a loopback address at all. It is unlikely to be. I have another application that works with the loopback address, I also disabled IPv6, set all the necessary options to ignore IPv6 in the shell. Then I tried to start packing under the aacount administrator, tried to install all the contents, including Java, under the administrator account - it was completely useless.

I did not find a reasonable answer in any forum. It was always about the firewall. But I turned it off, I uninstalled it, turned off the Windows firewall under the administrator account.

And also I opened all the necessary ports on my wi-fi router. Other programs, such as Privoxy, work well with loopback connections and ports, but if I check the online course, I get a message that all my ports are blocked, which I think is wrong.

My operating system is Windows 7 64bit, my Wi-Fi router is Speedport 723v.

I thank everyone in advance for the answers.

+4
source share
3 answers

It was the same problem with I2P and jre7u25

Fixed editing wrapper.config by adding -Djava.net.preferIPv4Stack=true to the java parameters:

 wrapper.java.additional.5=-Di2p.dir.config="C:\ProgramData\Application Data\i2p" -Djava.net.preferIPv4Stack=true 
+3
source
 2012/12/02 14:28:29 | Unable to bind routerconsole to 127.0.0.1 port 7657: java.net.SocketException: Permission denied: listen failed 2012/12/02 14:28:29 | You may ignore this warning if the console is still available at http://localhost:7657 

The problem is not that you do not have reverse code. You have it, but your Java process is not allowed to create a socket connection. You get a Permission denied exception, which means that your policy file does not allow your class to bind a socket to local port 7657.

Have you tried looking at the JRE policy file?

Try running your program (or a shell, not sure exactly what you are using ...) with the java.security.debug system property: http://docs.oracle.com/javase/1.5.0/docs/guide/plugin/ developer_guide / debugger.html # jsdp

+1
source

Well, I think that at least one step with establishing a loopback connection is allowed.

I think this may be useful for future users who would like to support the I2P project.

So, I downgraded the JDK to 1.6, reinstalled everything, and completely deleted every entry (in my case, Agnitum).

After that, the console was able to start.

0
source

All Articles