{"action":"created","issue":{"url":"https://api.github.com/repos/cursive-ide/cursive/issues/1233","labels_url":"https://api.github.com/repos/cursive-ide/cursive/issues/1233/labels{/name}","comments_url":"https://api.github.com/repos/cursive-ide/cursive/issues/1233/comments","events_url":"https://api.github.com/repos/cursive-ide/cursive/issues/1233/events","html_url":"https://github.com/cursive-ide/cursive/issues/1233","id":128948648,"number":1233,"title":"Connecting to an IPv6-only remote REPL","user":{"login":"martinraison","id":2560662,"avatar_url":"https://avatars.githubusercontent.com/u/2560662?v=3","gravatar_id":"","url":"https://api.github.com/users/martinraison","html_url":"https://github.com/martinraison","followers_url":"https://api.github.com/users/martinraison/followers","following_url":"https://api.github.com/users/martinraison/following{/other_user}","gists_url":"https://api.github.com/users/martinraison/gists{/gist_id}","starred_url":"https://api.github.com/users/martinraison/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martinraison/subscriptions","organizations_url":"https://api.github.com/users/martinraison/orgs","repos_url":"https://api.github.com/users/martinraison/repos","events_url":"https://api.github.com/users/martinraison/events{/privacy}","received_events_url":"https://api.github.com/users/martinraison/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-26T21:30:10Z","updated_at":"2016-01-26T21:40:06Z","closed_at":null,"body":"I'm working with IPv6-only machines, so I had to set the JVM option `java.net.preferIPv6Addresses=true` in Intellij (as per https://intellij-support.jetbrains.com/hc/en-us/articles/207241215). However when I try to connect to a remote REPL with this setting, I get this error:\r\n\r\n    Error:Abnormal build process termination: \r\n    Build process started. Classpath: /Applications/IntelliJ IDEA 15 CE.app/Contents/lib/jps-launcher.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/lib/tools.jar:/Applications/IntelliJ IDEA 15 CE.app/Contents/lib/optimizedFileManager.jar:/Applications/IntelliJ IDEA 15 CE.app/Contents/lib/ecj-4.4.jar\r\n    Error connecting to ::1:57569; reason: Protocol family unavailable: /0:0:0:0:0:0:0:1:57569\r\n    java.net.SocketException: Protocol family unavailable: /0:0:0:0:0:0:0:1:57569\r\n      at sun.nio.ch.Net.connect0(Native Method)\r\n      at sun.nio.ch.Net.connect(Net.java:457)\r\n      at sun.nio.ch.Net.connect(Net.java:449)\r\n      at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:647)\r\n      at io.netty.channel.socket.nio.NioSocketChannel.doConnect(NioSocketChannel.java:210)\r\n      at io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.connect(AbstractNioChannel.java:207)\r\n      at io.netty.channel.DefaultChannelPipeline$HeadContext.connect(DefaultChannelPipeline.java:1204)\r\n      at io.netty.channel.ChannelHandlerInvokerUtil.invokeConnectNow(ChannelHandlerInvokerUtil.java:117)\r\n      at io.netty.channel.DefaultChannelHandlerInvoker.invokeConnect(DefaultChannelHandlerInvoker.java:238)\r\n      at io.netty.channel.AbstractChannelHandlerContext.connect(AbstractChannelHandlerContext.java:220)\r\n      at io.netty.channel.ChannelOutboundHandlerAdapter.connect(ChannelOutboundHandlerAdapter.java:47)\r\n      at io.netty.channel.ChannelHandlerInvokerUtil.invokeConnectNow(ChannelHandlerInvokerUtil.java:117)\r\n      at io.netty.channel.DefaultChannelHandlerInvoker.invokeConnect(DefaultChannelHandlerInvoker.java:238)\r\n      at io.netty.channel.AbstractChannelHandlerContext.connect(AbstractChannelHandlerContext.java:220)\r\n      at io.netty.channel.ChannelOutboundHandlerAdapter.connect(ChannelOutboundHandlerAdapter.java:47)\r\n      at io.netty.channel.ChannelHandlerInvokerUtil.invokeConnectNow(ChannelHandlerInvokerUtil.java:117)\r\n      at io.netty.channel.DefaultChannelHandlerInvoker.invokeConnect(DefaultChannelHandlerInvoker.java:238)\r\n      at io.netty.channel.AbstractChannelHandlerContext.connect(AbstractChannelHandlerContext.java:220)\r\n\r\nI haven't been able to confirm whether this is happening within the Cursive code or not, but apparently something is trying to get an IP for localhost and concatenating it with the port, resulting in the invalid URL `0:0:0:0:0:0:0:1:57569`. Any ideas?"},"comment":{"url":"https://api.github.com/repos/cursive-ide/cursive/issues/comments/175244562","html_url":"https://github.com/cursive-ide/cursive/issues/1233#issuecomment-175244562","issue_url":"https://api.github.com/repos/cursive-ide/cursive/issues/1233","id":175244562,"user":{"login":"cursive-ide","id":5589171,"avatar_url":"https://avatars.githubusercontent.com/u/5589171?v=3","gravatar_id":"","url":"https://api.github.com/users/cursive-ide","html_url":"https://github.com/cursive-ide","followers_url":"https://api.github.com/users/cursive-ide/followers","following_url":"https://api.github.com/users/cursive-ide/following{/other_user}","gists_url":"https://api.github.com/users/cursive-ide/gists{/gist_id}","starred_url":"https://api.github.com/users/cursive-ide/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cursive-ide/subscriptions","organizations_url":"https://api.github.com/users/cursive-ide/orgs","repos_url":"https://api.github.com/users/cursive-ide/repos","events_url":"https://api.github.com/users/cursive-ide/events{/privacy}","received_events_url":"https://api.github.com/users/cursive-ide/received_events","type":"User","site_admin":false},"created_at":"2016-01-26T21:40:06Z","updated_at":"2016-01-26T21:40:06Z","body":"Hmm, it's possible that the REPL code is not doing the right thing here. I'm actually not sure that nREPL itself supports IPv6 addresses, I'll check - I can't remember how this works."}}