Click here to Skip to main content
15,914,303 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Unfortunately, I do not know enough about the topic at hand to be sure I am even asking this question correctly. I'll do my best.

I have a server that is sitting on an "accept". When a client requests a reply, the server executes a recv. My question is "Is there a way that I find out the IP address of the client?".
Posted

1 solution

The accept function will return you the client socket which has the information you need. Check this out[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900