When we bind a UDP server socket (Ip / port) to a special IP address INADDR_ANY - all interfaces avaliable in the system will be used for port PORT.
Now actually I am in need to find the MTU of the interface when a client gets connected - so I need to find the interface details to which a client has connected to it.
I tried to make use of getsockname
API but it returned "0.0.0.0". How can I get the actual IP of the interface to which a client has gotten connected?