Click here to Skip to main content
15,892,298 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi i m new in C#. and i am making a project in which i need client ip on server side.

Socket.RemoteEndPoint Property gives server ip instead of client.
plz anybody help me.

thanx in advance!
Posted
Comments
Abhinav S 23-May-10 8:45am    
Reason for my vote of 1
You have already asked this question in the C# forum as well.

1 solution

The real Ip Address of a client is never accessible. What you'll see is the(NAT) address of the Internet access point. The client IP address is on a private network, so it has no meaning on the internet.
 
Share this answer
 
Comments
dia 2010 23-May-10 7:34am    
Is it possible to access NAT. if so then how can i access it using c#?
thanx
Michel Godfroid 23-May-10 7:35am    
NO.
dia 2010 23-May-10 7:42am    
Ok n Thanx Alot

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