On Wed, 28 Mar 2001 15:53:59 -0500 (EST), Lee Chin wrote:

>Hi,
>I have a system with 3 NIC cards, each on a seperate subnet, with IP
>addresses 192.168.1.1, 192.168.2.1 and 192.168.3.1.
>
>I have a program listening for socket connections on 192.168.1.1, port 80.
>
>What I want to do is have incomming connection requets for IP 192.168.2.1
>and 192.168.3.1 on port 80 also be handled by my server running on
>192.168.1.1:80
>
>How do I do this in Linux?

The same way you do it anywhere else - you specify a bind address of 0.
That means to listen for incoming traffic from ANY IP-address.  
Take a look at the socket-API - it will tell you the same.


good luck,
Per Jessen

regards,
Per Jessen


-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.linux-learn.org/faqs

Reply via email to