delphi2007中怎样得到多个ip地址和本机名称? delphi2007中怎样得到多个ip地址和本机名称? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 1,用控件vartp:ttcpclient;strname,straddr:string;begintp:=ttcpclient.create(self);tp.close;tp.open;strname:=tp.LocalHostName;straddr:=tp.LocalHostAddr;label1.caption:=strname+' IP: '+straddr;tp.close;end;2,自已取,ip在注册表中HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\{A3F8828D-F3D1-4F1F-80DF-2F17836E6190}\Parameters\Tcpip计算机名:getComputerName 多个ip地址和本机名称?是什么意思?如果是得到IP或计算机名称,那简单。 我说的意思是一个计算机里有几个网卡(几个ip),我想把本机计算机名称和本机计算机里的全部ip地址找出来。 顶一个,我也正想知道。例如: 客户端电脑有两个网卡,一个的IP:192.168.0.100,另一个的IP:192.168.1.100 掩码都为:255.255.255.0 当我连接到服务器为:192.168.1.1时,客户机用的IP应该是:192.168.1.100,如何得到这个呢?? ~~~~~~~请如何将一个网页保存为文本,不是保存网页源码!!???~~~~~~~ 高分请教DelphiX的问题 ----SQL中两个参数怎么同时传递----?? 如何设置treeview选中节点的颜色 删除记录问题,急!(各位哥哥帮忙) 寻FASTREPORT的开发指南 关于非计算机专业同仁 怎么样停止程序运行? sql问题 请问如何运行文件.谢谢大家了 急求:通讯为9600.n.8.1的硬件通过串口发送数据,用delphi如何接收,并转化为10进制存如SQL method '' not supported by automation object
var
tp:ttcpclient;
strname,straddr:string;
begin
tp:=ttcpclient.create(self);
tp.close;
tp.open;
strname:=tp.LocalHostName;
straddr:=tp.LocalHostAddr;
label1.caption:=strname+' IP: '+straddr;
tp.close;
end;
2,自已取,
ip在注册表中
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\{A3F8828D-F3D1-4F1F-80DF-2F17836E6190}\Parameters\Tcpip
计算机名:getComputerName
例如:
客户端电脑有两个网卡,一个的IP:192.168.0.100,另一个的IP:192.168.1.100 掩码都为:255.255.255.0
当我连接到服务器为:192.168.1.1时,客户机用的IP应该是:192.168.1.100,如何得到这个呢??