本地系统的IP地址 [英] IP address of local system

查看:120
本文介绍了本地系统的IP地址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在asp.net中获取本地系统的IP地址?

How can i get ip address of my local system in asp.net?

推荐答案

请参阅以下内容:
http://bytes.com/topic/asp- classic/answers/439176-how-get-clients-ip-address-asp-net
有关更多信息,请参见:
http://www.w3schools.com/asp/coll_servervariables.asp [
refer the following :
http://bytes.com/topic/asp-classic/answers/439176-how-get-clients-ip-address-asp-net
and for more refer :
http://www.w3schools.com/asp/coll_servervariables.asp[^]


您可以使用
服务器变量

对于您的本地系统,您还可以使用
You can Use
Server Variables
and
For your local system you can also use
System.Net.IPHostEntry ipE = System.Net.Dns.GetHostEntry(Dns.GetHostName(););
System.Net.IPAddress[] IpA = ipE.AddressList;
textBox2.Text = IpA[0].ToString();




使用

在C#
Hi,

use

in C#
Request.ServerVariables["Remote_ADDR"].ToString();



在SQL中-使用以下链接

获取SQL Server中的客户端IP地址 [ ^ ]



in SQL - use below link

Get Client IP Address in SQL Server[^]


这篇关于本地系统的IP地址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆