Re: LuaSocket: Rationale behind address arg in socket.bind
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: LuaSocket: Rationale behind address arg in socket.bind
- From: Javier Guerra Giraldez <javier@...>
- Date: 2010年4月12日 09:28:51 -0500
2010年4月12日 Andreas Falkenhahn <andreas@airsoftsoftwair.de>:
> I can't imagine a case
> where I'd need to set this to a different address than 127.0.0.1 but then again, I'm
> just starting out with LuaSocket (& sockets in general)....
au contraire, if you only bind to 127.0.0.1, the socket won't go to
the network; only to the local loopback 'interface'. IOW, it wouldn't
be accessible by other machine.
the default is '*', meaning 'all IP addresses held by this machine'
--
Javier