i know the ip address of a hacker then how to find location of hacker using java code ?or any
suggestions to move forward?
Printable View
i know the ip address of a hacker then how to find location of hacker using java code ?or any
suggestions to move forward?
Hello tej,
I'm unsure as to how you would do this in Java but there are plenty of websites online that can pinpoint a computers location via the IP address.
These look really good:
How to get location of a computer on the world's map? IP Lookup
IP Country Location
Wrong, the IP redirects you to the provider, not the computer/network itself..
i think XD
Yeah ur rite admin.
But have dis.This is a small test program for the IPv6 reverse lookup functionality. IPv4 reverse lookup test:
# java lookupAndReturn mocha.cs.ucl.ac.uk
IPv6 reverse lookup test
# java lookupAndReturn -6 mocha.cs.ucl.ac.uk
Successful output on IPv6 reverse lookup test:
The initial hostname is: mocha.cs.ucl.ac.uk
The IP address is: 2001:630:13:101:2e0:18ff:fe34:150b
The reverse lookup hostname is: mocha.cs.ucl.ac.uk
Source Code:
Code :/* This is a test program -written by Sheng JIANG - UCL Febuary 2004 This program read the hostname from the command line as argument. Then translate the IP address into hostname and display on the screen. Then using that IP address for reverse lookup and display return hostname. The success result will output hostname, rather than IP address. */ import java.net.*; public class lookupAndReturn{ public static void main (String[] args) { try{ String cacheAddress=""; String cacheHostname=""; InetAddress cacheInetAddress; String usageMsg = "Usage: displayHostnames [options]\n" + "Where [options] are:\n" + "\t -h\t\t\t display this message\n" + "\t --help\t\t\t display this message - same with -h\n"+ "\t -4\t\t\t lookup IPv4address\n" + "\t -6\t\t\t lookup into IPv6address\n" + "\t by default IPv4 address of the given hostname will be lookup\n"; for (int i=0; i<args.length;i++) { if(args[i].equals("-h")) { System.err.println(usageMsg); return; } else if(args[i].equalsIgnoreCase("-help")) { System.err.println(usageMsg); return; } else if(args[i].equals("-4")) { // System.setProperty("java.net.preferIPv4Stack", "true"); } else if(args[i].equals("-6")) { System.setProperty("java.net.preferIPv6Addresses", "true"); } else { cacheHostname=args[i]; } } if (cacheHostname==""){ System.err.println("Error: address argument required"); return; }else{ System.out.println("\tThe initial hostname is:\t"+cacheHostname); } cacheInetAddress = InetAddress.getByName (cacheHostname); cacheAddress = cacheInetAddress.getHostAddress ().toString(); System.out.println("\tThe IP address is:\t\t"+cacheAddress); cacheInetAddress = InetAddress.getByName (cacheAddress); System.out.println("\tThe reverse lookup hostname is:\t"+cacheInetAddress.getHostName()); }catch (Exception e){ e.printStackTrace(System.err); System.out.println("error:\t"+e); } } }
But isn't the IP address taken from the proxy (if any)? They could very well be using a proxy service, and all you'd get is the proxy's IP.
Hi,
If you Know the Ip Address you can find the Location,Country,ISP provider,Latitude and Longitude Details of an Ip using the site Ip-Details.com