wolfssl icon indicating copy to clipboard operation
wolfssl copied to clipboard

Is there a function for get_dest_addr ?

Open ManonBillet opened this issue 2 years ago • 2 comments

Version

5.6.3

Description

I'm making a custom dtls server with multithread and I need to find the ip address for the destination. Have you a function who allows this feature ?

ManonBillet avatar Nov 23 '23 09:11 ManonBillet

Hi @ManonBillet

the way you asked your question seems a bit vague. You are making a DTLS server and would like to know ip address of the destination. Do you mean when you get a connection request from a client, you would like to know the ip address for the client?

If this is the question you are asking, then perhaps this related post is useful:

https://www.linuxquestions.org/questions/programming-9/how-to-get-client-ip-address-at-udp-server-304252/

Note that in DTLS the address is a UDP level concept.

Warm regards, Anthony

anhu avatar Nov 23 '23 19:11 anhu

Hello,

In my server I have the ip of my routers but I can't find my own ip address. So, when I receive a client request, I would like to know the ip of my connected interface to the client.

King regards,

ManonBillet avatar Nov 24 '23 07:11 ManonBillet