About acquiring an IP computer to get accurate IP for getting an inaccurate phone

Source: Internet
Author: User
Tags servervariables

To do a query identification system, the goods need to be queried with the IP and the direction of the cargo to match. The problem is that it is accurate to use a computer to test IP access. I know the IP is randomly assigned, but Unicom is Unicom Telecom is telecommunications, network segment or fixed in a range.

But I use the mobile phone to access to obtain IP when actually appeared unicom mobile phone display network segment of telecommunications. It's a tangle. End With string ip = request.servervariables["http_x_forwarded_for"]; To get the agent's IP. But this gets

It's a big risk. Baidu Introduction Very detailed

/string IP = Request.ServerVariables.Get ("REMOTE_ADDR");
string ip = System.Web.HttpContext.Current.Request.UserHostAddress;

string ip = request.servervariables["http_x_forwarded_for"];

About acquiring an IP computer to get accurate IP for getting an inaccurate phone

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.