<div dir="ltr">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. <div>
<br></div><div>Example:<div><br></div><div style>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?</div>
<div style><br></div><div style><br></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Jan 18, 2013 at 3:35 PM, Stas Boukarev <span dir="ltr"><<a href="mailto:stassats@gmail.com" target="_blank">stassats@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">Vassilis Radis <<a href="mailto:radisb@gmail.com">radisb@gmail.com</a>> writes:<br>
<br>
> But this returns the port , not the IP on which the request was received.<br>
> Am I missing something?<br>
</div>(acceptor-address *acceptor*)<br>
<div class="HOEnZb"><div class="h5"><br>
--<br>
With best regards, Stas.<br>
<br>
_______________________________________________<br>
tbnl-devel site list<br>
<a href="mailto:tbnl-devel@common-lisp.net">tbnl-devel@common-lisp.net</a><br>
<a href="http://common-lisp.net/mailman/listinfo/tbnl-devel" target="_blank">http://common-lisp.net/mailman/listinfo/tbnl-devel</a><br>
</div></div></blockquote></div><br></div>