Click here to Skip to main content
15,887,683 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi every Body


I have a web service that any person can call it and use it.
I want detect who is caller my web service in C#.

Please help me.

Thank you for your attention
Posted

Hi,

Try below line to get caller IP Address.
C#
HttpContext.Current.Request.UserHostAddress

for more info Click Here[^]
 
Share this answer
 
v2
Comments
Reza Alipour Fard 18-Feb-13 5:13am    
Thank you for your attention,
I read that link but it doesn't work correctly.
I don't know where I can use from your code!!!
Please present more 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