Hi all !
May someone help me in this problem ?
I have heard that, computers connected to internet (via Dial-Up connections) are assigned (every time they dial-in) a temporary IP address, so that it can be reachable on the internet (eg. by Web servers from whom I request pages).
Now my question is, how do I know (preferably using JavaScript alone) which IP-Address I am (my computer) assigned by my ISP ?
Thanks for you attention, kindly reply !
Comments
:
: May someone help me in this problem ?
:
: I have heard that, computers connected to internet (via Dial-Up connections) are assigned (every time they dial-in) a temporary IP address, so that it can be reachable on the internet (eg. by Web servers from whom I request pages).
:
: Now my question is, how do I know (preferably using JavaScript alone) which IP-Address I am (my computer) assigned by my ISP ?
:
: Thanks for you attention, kindly reply !
:
:
I found numerous pages with scripts, but all used javascript and a server-script language (such as php or SSI).
This one uses SSI: http://www.javascriptkit.com/script/script2/displayip.shtml
This one uses Java:
http://javascript.internet.com/user-details/ip.html
Others can be found on google.
myAddress = myIpAddress();
So far, there seems to be no good way of returning this to the web host you are going to (proper sand-boxing). Is this what you needed?
1. Click on Start in the bottom left hand corner of your screen.
2. Click on Run. An input box will appear with a flashing cursor.
3. Type "cmd" or "Command" in the Run box.
run cmd command
run cmd command
4. Click on OK or press the Enter key on your keyboard.Or click on start. Go to programs.Go to Accessories and click on Comand Prompt.
5. An MS DOS Window will open (see image). You are now ready to send a command to your computer.
cmd command
cmd command
6. Type "netstat -n" including the space.
7. Press Enter(see image).
netstat command
netstat command
8. You will see a list of all your active connections and IP numbers.
9. You will see four fields with four columns.
10. The Local Address field identifies your IP number. The Foreign Address field shows the IP numbers of the sites or people to whom you are connected. In the image, I am talking to two friends on Messenger, so two IP addresses are shown in the Foreign Address field.
11. You can also see what programs are being used to connect to those IP addresses by typing "netstat -nab". That way, if you are connected to more than one foreign IP address, you can more easily pick out the address you are interested in.
12. Also another way you can do it is Start>Run>Cmd>Ipconfig This should show you: your masked IP and IP.
13. An easy alternative way to determine your IP is to use an online IP checker like Get My IP Address
Above address shows you IP as well as MAC addresses & Geographic location with coordinates in Google Maps
[code]
$(document).ready( function() {
$.getJSON( "http://smart-ip.net/geoip-json?callback=?",
function(data){
$('#myip').html( data.host);
}
);
});
[/code]
[code]
$(document).ready( function() {
$.getJSON( "http://smart-ip.net/geoip-json?callback=?",
function(data){
$('#myip').html( data.host);
}
);
});
[/code]
[code]
$(document).ready( function() {
$.getJSON( "http://smart-ip.net/geoip-json?callback=?",
function(data){
alert( data.host);
}
);
});
[/code]
IP Addresses are hierarchical as the name indicated - while using the aim of can be to mention,only portion of the IP require are going to think largely that zone of one's deal this desired destination is found,using down the road areas of one's require provided that even more part of standing in this region the positioning of the aim at equipment enclosed by while using the aim of region.