UDP server with socket listening on all IP addresses
Hi,
I've got a self-written server that listens with one UDP socket on all IP addresses/interfaces. When there is only one normal IP address, this works fine.
But when there are more normal IP address, it doesn't.
The client sends a request to the first IPA, but the server sends the response from the second IPA, which the client doesn't expect (and thus ignores).
Is there a way to send a packet from a specified IPA (with sendto)?
|