简体   繁体   中英

Find Out Dynamic IP address of Computer using c#

我必须检查系统是否具有静态或动态IP地址,然后显示IT动态地址。我知道如何找出静态地址。我想知道如何找出动态IP地址.....

The ip of the viewers are get from

Request.ServerVariables["REMOTE_ADDR"]

or

Request.UserHostAddress

reference: http://msdn.microsoft.com/en-us/library/system.web.httprequest.userhostaddress.aspx

If the user is behind a proxy you may also need to check some more server variables as I describe them on this answer: https://stackoverflow.com/a/2514717/159270

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