My machine has 3 network interfaces.
I need to run a server on only 2 interfaces, and no connections will
be accepted from the 3rd interface. In other words, I need to bind on
only 2 interfaces.

When I try call two bind consequently, the second call fails, with
errno 0x16 (EINVAL)

I can't use INADDR_ANY, because the it is not allowed to create
connections from the 3rd interface.

Is it possible to bind on 2 (or more) interfaces?
Is there something I'm doing wrong?