[hunchentoot-devel] When hunchetoot is listening on multiple addresses how can I find on which address was a specific request received?

Vassilis Radis radisb at gmail.com
Fri Jan 18 14:58:26 UTC 2013


exactly, as I said in my example. But requests come in a "real" ip, not
0.0.0.0 . I want to know that ip



On Fri, Jan 18, 2013 at 4:21 PM, Stas Boukarev <stassats at gmail.com> wrote:

> Vassilis Radis <radisb at gmail.com> writes:
>
> > Well, (acceptor-address *acceptor*) returns nil if it has been started
> with
> > no :address initarg. The acceptor-address returns the :address argument
> at
> > the initialization of the acceptor which designates on which ip or
> hostname
> > the server listens (if :address is not supplied server listens on all the
> > interfaces), not on which ip address a request came through.
> >
> > Example:
> >
> > I have 2 interfaces on my machine: eth0 (192.168.1.1) and eth1 (8.8.8.8)
> .
> > If I start an acceptor with no address supplied, hunchentoot receives
> > requests on both of these interfaces and (acceptor-address *acceptor*)
> > returns nil which implies that it listens on 0.0.0.0 .But each request
> has
> > to come through one of them. How can I find on which one a request came
> > through?
> NIL means 0.0.0.0
>
> --
> With best regards, Stas.
>
> _______________________________________________
> tbnl-devel site list
> tbnl-devel at common-lisp.net
> http://common-lisp.net/mailman/listinfo/tbnl-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/tbnl-devel/attachments/20130118/4e064374/attachment.html>


More information about the Tbnl-devel mailing list