Fork me on GitHub

I’m running a clojure container with lein run in docker compose, and I have jvm-opts like so :jvm-opts ["-Dclojure.server.repl={:port,5555,:accept,clojure.core.server/repl}"] in project.clj. I’m trying to connec to the socket repl in atom using chlorine. But when I specify localhost and port 5555 I get the following:

REPL not connected
Connection refused. Ensure that you have a Socket REPL started on this host/port
How do I fix this error?


Check out this answer: It might have to do more with Docker than Clojure, so make sure you try the things described there first. 🙂

Carsten Behring13:02:41

It could indeed be that the "host" need to be set to "" so

lein repl :start :host :port 12345

Carsten Behring13:02:17

Maybe :

:jvm-opts ["-Dclojure.server.repl={:port,5555,:address "" ,:accept,clojure.core.server/repl}"]


getting a similar error when trying to connect with clover on vscode


REPL not connected: Unknown error while connecting to the REPL: -61


doesn’t seem to work on nvim either