Hello guys
I am in face of a little problem. Im building one client to some log server.
This server use UDP as the datagram family. I have a lot of commands i must
implement in this application, and i like the responses to be done in
another connection (New connection from my connect function). In winsock2,
how can i retrieve the CLIENT port number and IP? I need this information to
ass to the master server this address, so he can send this information
there. I just need to complycate everything so much becouse i like to work
in route environments, without look for a nat in this router. If the
connection comes from the client, the server can use this same connection to
delivery the log output. My problem is quite simple, instead. Can i ask to
the other server, or is in some part of the pack sent/received, or somewhere
else, the information of what port i use in my system to connect to the
remote server? And what is the ip i am using (outside ip) without parse
websites html like whatismyip? I think all this information is in the
packets, but i cant figure out how to read that information.
Thanks in advance, and sorry for my poor english.
--
Regards
Rafael Menezes
|