Richard Jones (MVP)
Just to aid my memory, I decided to blog about this.
This morning, I wanted to log the source IP address of my devices calling a C# web-service.
Here’s the code to get their IP address
string ipaddr=HttpContext.Current.Request.UserHostAddress
Powered by: Skin design by Mark Wagner, Adapted by David Vidmar Copyright © Richard Jones