Have you tried listening on 2 different port. I don't think you can bind
twice on the same port.

Naouak, Grade 2 de Kobal.
Site web: http://www.naouak.net


On Mon, Apr 2, 2012 at 23:35, Emerson Espínola <[email protected]>wrote:

> Hi,
>
> I'm trying to listen for datagrams in 2 address.
>
> var dgram = require('dgram');
> var server = dgram.createSocket("udp4");
> server.bind(8001, "192.168.65.66");
> server.bind(8001, "192.168.33.34");
>
> I'm always able to bind to the first address, but with the second I always
> get error:
> node.js:201
>         throw e; // process.nextTick error, or 'error' event on first tick
>               ^
> Error: bind Unknown system errno 10038
>     at errnoException (dgram.js:352:11)
>     at dgram.js:123:15
>     at lookup (dgram.js:49:12)
>     at UDP.lookup4 [as lookup] (dgram.js:59:10)
>     at Socket.bind (dgram.js:120:16)
> ...
>
> What am I doing wrong?
>
> []'s
> Emerson de Lira Espínola
> ** <[email protected]>
> <https://profiles.google.com/emersonespinola/buzz?hl=pt-BR>
> <http://www.quora.com/emersonespinola> 
> <http://www.facebook.com/emersonespinola>
> <http://www.linkedin.com/in/emersonespinola>
> <http://spaces.live.com/[email protected]>
> <http://emersonespinola.blogspot.com> <http://twitter.com/emersonespinola>
> <http://www.myebook.com/emersonespinola/>
>
>  <http://www.myebook.com/emersonespinola/>
>
> --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines:
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
>

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to