lkml.org 
[lkml]   [2001]   [Mar]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: FWD: 3 NIC cards problem
On Wed, 28 Mar 2001, Lee Chin wrote:

> 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?

If you use INADDR_ANY in your sockaddr struct that you pass to bind,
instead of your IP address, it should listen on all network interfaces.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:18    [W:0.380 / U:0.520 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site