JavaScript

Moderators: None (Apply to moderate this forum)
Number of threads: 2061
Number of posts: 5164

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
How to find my IP Address ? Posted by smart.bits on 14 Mar 2007 at 3:34 AM
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 !

Report
Re: How to find my IP Address ? Posted by zibadian on 14 Mar 2007 at 5:00 AM
: 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 !
:
:
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.
Report
Re: How to find my IP Address ? Posted by hhhobbit on 9 Jul 2009 at 11:21 AM
The JavaScript function you want may not be visible outside of the FindProxyForURL(url, host) function you can use:

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?


Report
Re: How to find my IP Address ? Posted by radha65 on 23 Jul 2009 at 3:40 AM
You can get ip address from ip address or follow these steps.


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

Report
This post has been deleted. Posted by radha65 on 23 Jul 2009 at 3:41 AM
This post has been deleted.
Report
This post has been deleted. Posted by radha65 on 23 Jul 2009 at 3:43 AM
This post has been deleted.
Report
This post has been deleted. Posted by radha65 on 23 Jul 2009 at 3:47 AM
This post has been deleted.
Report
This post has been deleted. Posted by tejji on 31 Oct 2009 at 9:50 AM
This post has been deleted.
Report
Re: How to find my IP Address ? Posted by tejji on 28 Nov 2009 at 10:47 PM
http://tejji.com/ip/myipaddress.aspx

Above address shows you IP as well as MAC addresses & Geographic location with coordinates in Google Maps
Report
This post has been deleted. Posted by tejji on 5 Dec 2009 at 11:18 AM
This post has been deleted.
Report
Re: How to find my IP Address ? Posted by Mikhus on 27 Feb 2012 at 2:37 PM
With using Smart-IP.net Geo-IP API. For example, by using jQuery:

<script src="jquery.js"></script>
<script>
$(document).ready( function() {
	$.getJSON( "http://smart-ip.net/geoip-json?callback=?",
		function(data){
			$('#myip').html( data.host);
		}
	);
});
</script>
<div id="myip"></div>

Report
Re: How to find my IP Address ? Posted by Mikhus on 27 Feb 2012 at 2:46 PM
With using Smart-IP.net Geo-IP API. For example, by using jQuery:

<script src="jquery.js"></script>
<script>
$(document).ready( function() {
	$.getJSON( "http://smart-ip.net/geoip-json?callback=?",
		function(data){
			$('#myip').html( data.host);
		}
	);
});
</script>
<div id="myip"></div>

Report
Re: How to find my IP Address ? Posted by Mikhus on 27 Feb 2012 at 2:49 PM
With using Smart-IP.net Geo-IP API. For example, by using jQuery:

$(document).ready( function() {
	$.getJSON( "http://smart-ip.net/geoip-json?callback=?",
		function(data){
			alert( data.host);
		}
	);
});

Report
Re: How to find my IP Address ? Posted by hulkfan on 27 Feb 2013 at 2:13 AM
Hi, you can find out the IP address which was assigned to you by your ISP from . It is very simple.



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.