Click here to Skip to main content
15,912,329 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
sir i created the client server program under c in windows..

i send the data from the client to server..

i want to know the client ip address in server program..

how can i find the client ipaddress in server program..
Posted
Comments
Sergey Alexandrovich Kryukov 1-Aug-11 2:46am    
I wonder why? It is not needed for communications between client and server even if you want to send notifications to the client triggered by the server.
--SA

1 solution

Use getpeername() to get the client information...
 
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