What port range do I need to open for Swank

Hello, I need to ask my IT department to open ports needed to communicate with SWANK. What is the port range that SWANK uses? Or is it possible to specify a port during slime startup? Thanks, Mirko

The default port is 4005, which can be changed, but I would advise you not to expose it, not even on a LAN, because it's unencrypted. Better setup a local SSH tunnel to the remote host and have the SLIME client connect through it.
Hello,
I need to ask my IT department to open ports needed to communicate with SWANK.
What is the port range that SWANK uses? Or is it possible to specify a port during slime startup?
Thanks,
Mirko
-- Stelian Ionescu a.k.a. fe[nl]ix Quidquid latine dictum sit, altum videtur.

This is on a local host. I see slime opening ports above 40,000. I've been digging and tracing the code to figure out where the exact number is coming from, where I found a call to LOCAL-PORT and SOCKET-QUEST in SETUP-SERVER. I'll dig some more tomorrow. Mirko On Wed, Aug 17, 2016 at 5:57 PM Stelian Ionescu <sionescu@cddr.org> wrote:
The default port is 4005, which can be changed, but I would advise you not to expose it, not even on a LAN, because it's unencrypted. Better setup a local SSH tunnel to the remote host and have the SLIME client connect through it.
Hello,
I need to ask my IT department to open ports needed to communicate with SWANK.
What is the port range that SWANK uses? Or is it possible to specify a port during slime startup?
Thanks,
Mirko
-- Stelian Ionescu a.k.a. fe[nl]ix Quidquid latine dictum sit, altum videtur.

I think it depends on how you start it. If you start it from Emacs with M-x slime, then it uses a random port (the 0 in SWANK:START-SERVER) and tells Emacs about it via a file. Alternatively, if you start it from within Lisp using SWANK:CREATE-SERVER then it uses port 4005 by default and you can connect to it from Emacs using M-x slime-connect. In both cases, it only listens on localhost (see SWANK::*LOOPBACK-INTERFACE*) by default. Your firewalling policy must be very strict if it blocks that. __Martin
On Thu, 18 Aug 2016 03:10:30 +0000, Mirko Vukovic said:
This is on a local host.
I see slime opening ports above 40,000. I've been digging and tracing the code to figure out where the exact number is coming from, where I found a call to LOCAL-PORT and SOCKET-QUEST in SETUP-SERVER. I'll dig some more tomorrow.
Mirko
On Wed, Aug 17, 2016 at 5:57 PM Stelian Ionescu <sionescu@cddr.org> wrote:
The default port is 4005, which can be changed, but I would advise you not to expose it, not even on a LAN, because it's unencrypted. Better setup a local SSH tunnel to the remote host and have the SLIME client connect through it.
Hello,
I need to ask my IT department to open ports needed to communicate with SWANK.
What is the port range that SWANK uses? Or is it possible to specify a port during slime startup?
Thanks,
Mirko
-- Stelian Ionescu a.k.a. fe[nl]ix Quidquid latine dictum sit, altum videtur.
participants (3)
-
Martin Simmons
-
Mirko Vukovic
-
Stelian Ionescu