Without attempting to bind it
This should do the trick...
int getsockname(int socket, struct sockaddr *restrict address,
socklen_t *restrict address_len);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With