[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: LuaSocket: Rationale behind address arg in socket.bind
- From: Javier Guerra Giraldez <javier@...>
- Date: Mon, 12 Apr 2010 09:28:51 -0500
2010/4/12 Andreas Falkenhahn <email@example.com>:
> 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'