java.io.IOException

Unable to establish loopback connection

Samebug tips1

First of all, check if your firewall is not blocking your connection. If it's not, you might need to explicitly set advertised.host.name to "advertised.host.name = yourIpAddress", this forces the hosts returned to be the resolvable IP address of your VM.

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web12599

  • via GitHub by Jaguar0625
    , 3 months ago
    Unable to establish loopback connection
  • via Google Groups by Rasa Vule, 1 year ago
    Unable to establish loopback connection
  • via Google Groups by Martina Ferrarini, 1 year ago
    Unable to establish loopback connection
  • Stack trace

    • java.io.IOException: Unable to establish loopback connection at sun.nio.ch.PipeImpl$Initializer.run(PipeImpl.java:106) at java.security.AccessController.doPrivileged(Native Method) at sun.nio.ch.PipeImpl.<init>(PipeImpl.java:122) at sun.nio.ch.SelectorProviderImpl.openPipe(SelectorProviderImpl.java:27) at java.nio.channels.Pipe.open(Pipe.java:133) at sun.nio.ch.WindowsSelectorImpl.<init>(WindowsSelectorImpl.java:104) at sun.nio.ch.WindowsSelectorProvider.openSelector(WindowsSelectorProvider.java:26) at java.nio.channels.Selector.open(Selector.java:209) at com.sun.grizzly.util.Utils.openSelector(Utils.java:100) at com.sun.grizzly.TCPSelectorHandler.initSelector(TCPSelectorHandler.java:399) at com.sun.grizzly.TCPSelectorHandler.preSelect(TCPSelectorHandler.java:379) at com.sun.grizzly.SelectorHandlerRunner.doSelect(SelectorHandlerRunner.java:183) at com.sun.grizzly.SelectorHandlerRunner.run(SelectorHandlerRunner.java:130) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) Caused by: java.net.ConnectException: Connection refused: connect at sun.nio.ch.Net.connect(Native Method) at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:500) at java.nio.channels.SocketChannel.open(SocketChannel.java:146) at sun.nio.ch.PipeImpl$Initializer.run(PipeImpl.java:78) ... 15 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago