Hey,
You can probably alias your ethernet as 2 different classes of IP
addresses. ex: Class A (10.0.0.0/8), Class B (172.16.0.0/16), or
Class C (192.168.0.0/24)
If you have your server bind() with your sockaddr_in.sin_addr as
INADDR_ANY, then have your clients try to connect each of the aliased
IP's. Your server will think it's connected to 2 separate client's
(although your server will have the same IP as each client).
When you have a connection established, call getsockname() and
getpeername() and you'll see what I'm referring to.
Hope this helps.
Tuan
On Thu, 1 Apr 1999, Roberto Mameli wrote:
> Hallo,
>
> I hope someone can help me to solve the following problem. I have a
> Linux box with a single physical network card and two aliased IP mapped
> on it. When I open a socket in the client application running on A, I'd
> like to have the possibility of choice between the two aliased IPs, in
> such a way that the server application on the destination side appears
> to have requests from two different clients. Is this possible, and if
> so, how can it be done?
>
> Thanks in advance
>
> Roberto
>
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-net" in
> the body of a message to [EMAIL PROTECTED]
>
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]