Fork me on GitHub
#nrepl
<
2018-05-08
>
kkruit19:05:22

I'm having trouble connecting to a repel running on a virtual server via virtualbox. I'm fairly certain that all the firewalls are turned off and when i do a port scan on the box it says the port that i'm using is open. I'm using spacemacs with ciderconnect and i'm getting the error: Connection closed unexpectedly (connection broken by remote peer)

kkruit19:05:38

I started it using the following command: lein repl :headless :port 4242

kkruit19:05:42

I'm not sure where to look or how to troubleshoot this issue...

kkruit20:05:25

the service that's running does say: nREPL server started on port 4242 on host 127.0.0.1 - <nrepl://127.0.0.1:4242>

kkruit20:05:17

If i try to connect via: lein repl :connect 127.0.0.1:4242

kkruit20:05:43

i get: Connecting to nREPL at localhost:4242 SocketException The transport's socket appears to have lost its connection to the nREPL server clojure.tools.nrepl.transport/bencode/fn--5154/fn--5155 (transport.clj:95) clojure.tools.nrepl.transport/bencode/fn--5154 (transport.clj:95) clojure.tools.nrepl.transport/fn-transport/fn--5126 (transport.clj:42) clojure.core/binding-conveyor-fn/fn--4676 (core.clj:1938) java.util.concurrent.FutureTask.run (FutureTask.java:266) java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1149) java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:624) java.lang.Thread.run (Thread.java:748) Bye for now!

kkruit20:05:29

hmm. I am able to connect with that same command while sshed into the virtualbox...