timvb
timvb

Reputation: 152

Can I retrieve an Internal IP address for a client using JS?

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

Answers (2)

T.J. Crowder
T.J. Crowder

Reputation: 1074058

...i'd like to implement this feature in JS if possible. Can this be done in JS?

No.

If not how would i do this in ASP.NET?

Using UserHostAddress.

Upvotes: 2

Dave Bish
Dave Bish

Reputation: 19646

HttpContext.Current.Request.UserHostAddress should do the trick, on the server side.

Upvotes: 1

Related Questions