简体   繁体   中英

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

I have to retrieve internal ip addresses(10.XXX) 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!

...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 .

HttpContext.Current.Request.UserHostAddress应该在服务器端完成任务。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM