6

There is no argument for setting the address to bind to when starting swank server:

* (describe 'swank:create-server) 
=> ...
   Lambda-list: (&KEY (PORT DEFAULT-SERVER-PORT)
                (STYLE *COMMUNICATION-STYLE*) (DONT-CLOSE *DONT-CLOSE*)
                (CODING-SYSTEM *CODING-SYSTEM*))

...

How can I do it?

Terje Norderhaug
  • 3,649
  • 22
  • 25
Paralife
  • 6,116
  • 8
  • 38
  • 64

1 Answers1

5

Bind swank::*loopback-interface* to a string containing the ip address for the swank server. It defaults to the localhost ("127.0.0.1").

For security, take care that the swank address is not wide open to the world as it would leave the computer vulnerable for intrusion. If the goal is to access swank from another computer, it might be preferable to rather set up a secure channel to the swank server and leave the loopback-interface as is.

Terje Norderhaug
  • 3,649
  • 22
  • 25
  • 1
    I am already using ssh tunneling to access the server from laptop when I am on the internet, but at my home LAN, the desktop PC didnt have putty client setup with tunnels and I was lazy to do it then, so i thought I would just fire up swank on the LAN iface instead of filling the tunnel forwardings in putty :P . Thats what caused the question – Paralife May 08 '11 at 23:16
  • 1
    Of course this kind of laziness is dangerous because I am sure that if swank:create-server provided the argument for address I would have left it listening on 0.0.0.0 just to avoid configuring the desktop PC.... :))))) – Paralife May 08 '11 at 23:18
  • Swank offers optional authentication with a password in a `~/.slime-secret` file. Step carefully though. – Terje Norderhaug May 09 '11 at 00:49