pb怎么樣讀取到雙網卡的ip
uj5u.com熱心網友回復:
運行 ipconfig /all >> c:\a.txt 后再分析c:\a.txt 檔案。uj5u.com熱心網友回復:
Windows IP ConfigurationHost Name . . . . . . . . . . . . : KEVEN
Primary Dns Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Broadcast
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No
Ethernet adapter 無線網路連接:
Media State . . . . . . . . . . . : Media disconnected
Description . . . . . . . . . . . : Intel(R) WiFi Link 5100 AGN
Physical Address. . . . . . . . . : 00-21-5D-7E-B6-6A
Ethernet adapter 本地連接:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Intel(R) 82567LM Gigabit Network Connection
Physical Address. . . . . . . . . : 00-21-86-9F-5C-3E
Dhcp Enabled. . . . . . . . . . . : No
IP Address. . . . . . . . . . . . : 192.168.1.121
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.1.1
DNS Servers . . . . . . . . . . . : 61.177.7.1
Ethernet adapter VirtualBox Host-Only Network:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : VirtualBox Host-Only Ethernet Adapter
Physical Address. . . . . . . . . : 08-00-27-00-A4-01
Dhcp Enabled. . . . . . . . . . . : No
IP Address. . . . . . . . . . . . : 192.168.56.1
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :
我的網卡地址
感覺分析起來不是那么簡單呢,因為我有一個虛擬機
uj5u.com熱心網友回復:
還沒整明白...uj5u.com熱心網友回復:
首先把ipconfig /all >> c:\1.txt 寫c:\1.txt檔案中,根據里面的內容進行決議如搜索“IP Address. . . . . . . . . . . . :”這個字符串,后面的即為IP地址
采用這個方法,多個網卡也一樣可以解決
uj5u.com熱心網友回復:
嘿嘿。。。
uj5u.com熱心網友回復:
改下一下,呵呵首先采用以下代碼
run("ipconfig /all >> c:\1.txt")
然后再對c:\1.tx里面的內容進行決議
如搜索“IP Address. . . . . . . . . . . . :”這個字串,后面的即為IP地址
采用這個方法,多個網卡也一樣可以解決
uj5u.com熱心網友回復:
大版就是更熱心。轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/66648.html
標籤:API 調用
下一篇:PB 中的報銷計算問題,求高手!
