How to capture real IP using Javascript
Does anyone have any tips on how to monitor the Java/Javascript activities when using Firefox, IE, Opera under W32 and Linux? I know in Firefox you can switch off scripts using a plugin and there is Toos|Javascript console, any guidance for getting the best out of this console or other similar utility would be greatly appreciated.
I have also heard that it is also possible to find the IP address of a machine using JAVASCRIPT please let me...
Thanks for your help..
Re: How to capture real IP using Javascript
If you are running your site on an Apache server:
var ip = '<!--#echo var="REMOTE_ADDR"-->';
else assign it from your server-side script. If you are using C# or VB .net, then:
var ip = '<%=Request.UserHostAddress%>'
Re: How to capture real IP using Javascript
one way is to capture packets and read the information contained in the packet. The packets contain information regarding source and destination addresses [including host addresses]. That is one way someone could "see" real IP addresses. Often consumers do not take precautionary measures to safeguard their system hence a "knowledgeable" individual can compromise or obtain information from those systems.