mfikes / tubular

Clojure Socket REPL client
Eclipse Public License 1.0
85 stars 4 forks source link

Client not working with ClojureCLR Socket server #8

Open kumarshantanu opened 3 years ago

kumarshantanu commented 3 years ago

When I try to connect Tubular client to a ClojureCLR socket server, it is unable to connect.

$ rlwrap dotnet Clojure.Main.dll
Clojure 1.10.0-alpha1
(require '[clojure.core.server :as server])
nil
(server/start-server {:address "127.0.0.1" :port 5555 :name "ss" :accept 'clojure.core.server/repl})
#object[TcpListener 0x122351e "System.Net.Sockets.TcpListener"]
user=>

Telnet works:

$ telnet localhost 5555
Trying ::1...
Connected to localhost.
Escape character is '^]'.
user=>

Tubular (version 1.3.0) doesn't:

user=> (require '[tubular.core :as tu])
nil
user=> (tu/connect 5555)
Execution error (ConnectException) at sun.nio.ch.Net/connect0 (Net.java:-2).
Connection refused

Environment:

OS: OSX 10.15.7 (MacOS Catalina) .NET: DotNET Core 3.1 Server: ClojureCLR 1.10.0-alpha1

kumarshantanu commented 3 years ago

Additional info:

Telnet works with localhost, but not with 127.0.0.1:

$ telnet 127.0.0.1 5555
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused
telnet: Unable to connect to remote host