开发者

Request.ServerVariables["REMOTE_ADDR"] gets IP6 instead IP4

Here is my code:

string ip = Request.ServerVariables["REMOTE_ADDR"]

I use it for saving the IP for eac开发者_如何学编程h login to a UserLog table. Poorly it saves the IP6 instead of the IP4.

What is the corret way?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜