问题描述
Hello guys
我正在尝试使用以下来获取本地IpAddress
$ .getJSON( http://jsonip.com/?callback=?,功能(数据){
Ip = data.ip;
});
使用Jquery我得到Ipaddress
但问题是这个ipaddress与我在CMD中使用的Ipaddress不同
命令ipconfig.i想要我在cmd中获得相同的ipaddress
请帮帮我
谢谢提前
我尝试过:
$ .getJSON( http://jsonip.com/?callback=?,功能(数据){
Ip = data.ip;
});
Hello guys
I am trying to get Local IpAddress using following
$.getJSON("http://jsonip.com/?callback=?", function (data) {
Ip = data.ip;
});
using Jquery and i get Ipaddress
but the thing is that this ipaddress is different from the Ipaddress i got in CMD using
command ipconfig.i want same ipaddress which i get in cmd
please help me in that
Thanks in Advance
What I have tried:
$.getJSON("http://jsonip.com/?callback=?", function (data) {
Ip = data.ip;
});
推荐答案
这篇关于如何使用jquery获取本地PC ipaddress的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!