nrepl

https://github.com/nrepl/nrepl || https://nrepl.org
kkruit 2018-05-08T19:56:22.000279Z

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)

kkruit 2018-05-08T19:57:38.000021Z

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

kkruit 2018-05-08T19:59:42.000436Z

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

kkruit 2018-05-08T20:00:25.000652Z

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>

kkruit 2018-05-08T20:05:17.000390Z

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

kkruit 2018-05-08T20:05:43.000388Z

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!

kkruit 2018-05-08T20:07:29.000437Z

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