UDP: binding to a specific interface

Klacke klacke@REDACTED
Mon Nov 25 10:54:05 CET 2002


On Mon, Nov 25, 2002 at 10:51:41AM +0100, Klacke wrote:
> On Sun, Nov 24, 2002 at 04:53:19PM +1300, Bruce Fitzsimons wrote:
> > Guys'n'gals,
> > 
> > I've just been spelunking the api docs, but I can't see a way to only listen
> > to one interface (aka IP address) on a multi-interface machine. Surely there
> > must be a way?
> > 
> 
> 
> 
> gen_tcp:listen(Port, [{ip, {127,0,0,1}}]).


or gen_udp:open(Port, [{ip, {127,0,0,1}}]).


/klacke





More information about the erlang-questions mailing list