Its very easy to get IP address using javascript and SSI, Javscript is a client side script and it doesnt have the capablity of finding out the ip address by itself so we are using SSI along with javascript.
Use SHTML extention instead of html or htm, we are using SSI for getting the IP
Here is the SSI[Server Side Includes] script used in this tutorial
<!–#echo var=”REMOTE_ADDR”–>
<SCRIPT LANGUAGE="JavaScript"><!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! -->
<!-- Begin
// [url]http://www.mistonline.in[/url]
// Depending on your server set-up,
// you may need to use the ".shtml"
// extension [instead of the "html"
// or "htm"] as the script uses Server
// Side Includes. To display in the
// title bar, exclude the
//"<title></title>" code from the page.
// This part gets the IP
var ip = '<!--#echo var="REMOTE_ADDR"-->';
// This part is for an alert box
alert("Your IP address is "+ip);
// This part is for the status bar
window.defaultStatus = "Your IP address is "+ip;
// This part is for the title bar
document.write("<title>Your IP address is "+ip+"</title>");
// End -->
</script>
Incoming search terms:
- javascript get ip address (30)
- javascript get ip (17)
- get ip address in javascript (12)
- get ip address using javascript (11)
- get ip javascript (10)
- get ip address javascript (8)
- how to get ip address in javascript (8)
- getting ip address using javascript (6)
- get ip using javascript (5)
- javascript ip (4)
- getipaddress javascript (4)
- ip address using javascript (4)
- get IP address using jquery (4)
- javascript ip address (4)
- javascript ip address script (4)
- ssi get ip address (3)
- get ip address through javascript (2)
- get IP address in java script (2)
- javascript to get IP (2)
- how to get client mac address using javascript (2)
- get ip in javascript (2)
- javascript get client ip address ssi (2)
- how to call javascript function in textboxarray in php (2)
- get ip address of a server in the format 192 using javascript (2)
- finding ip address using javascript (2)
- how to get ip address with javascript (2)
- javascript find ip address (2)
- jquery get server ip address (2)
- get ip address with ssi (2)
- get ip with javascript (2)
- script htm get ip (2)
- how to get ip address through javascript (2)
- obtain IP address with JavaScript (2)
- javascript getip (2)
- javascript Server ip address (2)
- jquery toggle right (2)
- jquery server Ip address (2)
- how to get the ip address and hit counter using javascript in html (2)
- how to get visitor ip address using javascript (2)
- javascript get website IP (1)
You will also be interested in ,
- How to close a child window from a parent window using javascript
- Check password strength using javascript
- Banner rotator with preference using javascript
- Javascript Title Bar Message Changer
- Character Encoder And Decoder Using Javascript
- Replacing images with time intervals using jquery
- Buzzing or vibrating the login form using jquery
- Change first letter of each word in a form field from lowercase to uppercase
- Javascript popup window

