Reputation: 152
I have to retrieve internal ip addresses(10.X.X.X) from clients on a intranet. The intranet is built using ASP.NET C# however i'd like to implement this feature in JS if possible. Can this be done in JS? If not how would i do this in ASP.NET? Thanks in advance!
Upvotes: 0
Views: 788
Reputation: 1074058
...i'd like to implement this feature in JS if possible. Can this be done in JS?
If not how would i do this in ASP.NET?
Using UserHostAddress
.
Upvotes: 2
Reputation: 19646
HttpContext.Current.Request.UserHostAddress should do the trick, on the server side.
Upvotes: 1