i know the ip address of a hacker then how to find location of hacker using java code ?or any
suggestions to move forward?
Welcome to the Java Programming Forums
The professional, friendly Java community. 21,500 members and growing!
The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.
>> REGISTER NOW TO START POSTING
Members have full access to the forums. Advertisements are removed for registered users.
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
Please use [highlight=Java] code [/highlight] tags when posting your code.
Forum Tip: Add to peoples reputation by clicking the button on their useful posts.
Wrong, the IP redirects you to the provider, not the computer/network itself..
i think XD
Please use [highlight=Java] code [/highlight] tags when posting your code.
Forum Tip: Add to peoples reputation by clicking the button on their useful posts.
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:
/* 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.
Please use [highlight=Java] code [/highlight] tags when posting your code.
Forum Tip: Add to peoples reputation by clicking the button on their useful posts.
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