Thanks for the idea. But a small correction required in the code suggested.
For the line:
*var ip = java.net.InetAddress.getLocalHost();*
you may not use the *new* keyword because you are calling a static method
and not creating any instance.

I hope this is understood. If you have any questions, please ask me.


Regards
Amardeep T


On Tue, Jul 13, 2010 at 1:09 PM, Sandeep Thakur <[email protected]>wrote:

> Interesting man!
>
> Now that you already are logging the IP addresses of users, which are
> actually the internet facing IP addresses of users. And these are not
> exact in most cases when try to find it from Server side includes like
> php. If you use client side includes for the same task like using
> Javascript, then you will know real ip address. But it will require
> some form or mechanism to send this client side value back to server
> and then log it for further purposes.
>
> Can you try also log one more IP which will be local IP address (which
> is the real ip address in all types of ISP environments) along with
> what is you are getting currently. I am sure this will help uniquely
> trace anyone in the Internet unless they use some proxy or something.
>
> The code for this case in Javascript in given below:
>
> // ipStr will give you actual / real ip address which you can send
> back to server for logging. Otherwise your code in php  is actually
> doing that task at server itself.
>
> var ip = new java.net.InetAddress.getLocalHost();
> var ipStr = new java.lang.String(ip.getHostAddress());
>
> Most of the IP Tracing that exists in internet today are not providing
> this kind of results. Hence, this could be a potential tool which
> every user can use online to find / log exactly anyone in the
> internet.
>
> Team, you can add your inputs as well. Thanks!
>
>
> Regards
> Sandeep Thakur
>
> --
> You received this message because you are subscribed to the Google Groups
> "nforceit" group.
> To post to this group, send an email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<nforceit%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/nforceit?hl=en-GB.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"nforceit" group.
To post to this group, send an email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/nforceit?hl=en-GB.

Reply via email to