I want to get Ip address of my machine in javascript which is further refer in my html page. I have refer all the suggested links but I do not get any answer. I do not want to use any link to get the IP so i tried with following line of code in my javascript
var ip = '<%=request.getRemoteAddr();%>';
or
var ip = HttpContext.Current.Request.ServerVariables["REMOTE_ADDR"];
var ip = Request.UserHostAddress.ToString();
But do not get the result.
Please help me to get the solution.I want to include this javascript in my html page and I do not want to use any link to get the IP.
All the links I have gone through gives the external links to get the IP address and I do not want to use any external link to get the IP.