Hi, I have setup simple server in clisp (ubuntu) and it works fine when
I am accessing it through local computer.
The problem is that I cannot access it from external computer (on the
local net). I have python version of the server and it is accessible
from computers attached to the lan.
The code I am using is:
(defun serve (server)
(unwind-protect
(format t "~&Waiting for a connection on ~S:~D~%"
(socket:socket-server-host server) (socket:socket-server-port server))
(connection-handle server)
(socket:socket-server-close server)))
(serve (socket:socket-server 8809 :interface "192.168.0.3" :backlog 1))
I have tried to use default values for :interface, or to specifi new
values, but no success.
It always gives me "Waiting for a connection on 127.0.0.1" even when I
specify non existing IP for the interface.
Please give me a clue. Thanks
Thanks a lot. I am a 2 week lisper and was sure I am doing something
wrong. Fortunately, after installing the latest clisp all went smooth.
Thanks for replay. I will be more elaborate next time.
Regards
(message (Hello ···········@abv.bg)
(you :wrote :on '(6 Dec 2006 06:32:48 -0800))
(
a> Hi, I have setup simple server in clisp (ubuntu) and it works fine when
a> I am accessing it through local computer.
i can say that it works on Debian Etch (2.41) and Windows XP (2.39) --
socket is bound to interface that is specified in the call.
if non-existent IP is specified, it reports error.
when no IP is specified, it binds on 0.0.0.0 -- that is all interfaces.
a> Please give me a clue. Thanks
maybe some update is available on ubuntu, or you can build clisp from
sources?
it's unlikely that something outside of clisp affects it (firewall?), but
who knows.
)
(With-best-regards '(Alex Mizrahi) :aka 'killer_storm)
"People who lust for the Feel of keys on their fingertips (c) Inity")
··········@abv.bg writes:
> Hi, I have setup simple server in clisp (ubuntu) and it works fine when
> I am accessing it through local computer.
> The problem is that I cannot access it from external computer (on the
> local net). I have python version of the server and it is accessible
> from computers attached to the lan.
> The code I am using is:
> (defun serve (server)
> (unwind-protect
> (format t "~&Waiting for a connection on ~S:~D~%"
> (socket:socket-server-host server) (socket:socket-server-port server))
> (connection-handle server)
> (socket:socket-server-close server)))
>
> (serve (socket:socket-server 8809 :interface "192.168.0.3" :backlog 1))
>
> I have tried to use default values for :interface, or to specifi new
> values, but no success.
> It always gives me "Waiting for a connection on 127.0.0.1" even when I
> specify non existing IP for the interface.
> Please give me a clue. Thanks
The B.A.BA of reporting a problem is to give the version numbers of
the problematic software. There has been some clisp versions where
this problem is a known bug.
The second point would be to give us a complete function demonstrating
the problem. We don't know what connection-handle does. I don't see
any call to socket:socket-accept...
--
__Pascal Bourguignon__ http://www.informatimago.com/
NOTE: The most fundamental particles in this product are held
together by a "gluing" force about which little is currently known
and whose adhesive power can therefore not be permanently
guaranteed.