How to get system ip using javascript

How to get system ip using javascript

In page load event just call GetIPAddress().This function will return your ip address.

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">

<html xmlns="">
<head runat="server">
<script language="JavaScript">
function GetIPAddress()
var obj = null;
var rslt = "";
obj = new ActiveXObject("rcbdyctl.Setting");
rslt = obj.GetIPAddress;
obj = null;
return rslt;


<body onload="return GetIPAddress()">
<form id="form1" runat="server">


Related Articles

More articles: IP address Javascript function


No responses found. Be the first to comment...

  • Do not include your name, "with regards" etc in the comment. Write detailed comment, relevant to the topic.
  • No HTML formatting and links to other web sites are allowed.
  • This is a strictly moderated site. Absolutely no spam allowed.
  • Name: