Register  |  Login



Earn money by sharing your knowledge

Quomon shares its advertising revenue with contributing experts that answer questions effectively. Join our community to share your knowledge and earn an income as you go.

Question

Status: Open Points: 75 Time: 19:14 - Nov 20, 2007  

uncleboblaw

find location of computer from IP address

Hi friends. Is it possible to find the geographic location of a computer from it's IP address?

Categories:

Answer Discussion
Tutorials

 

Q&A System for Websites and Corporate Collaboration

Advertisement

  • Generates significant organic traffic for websites
  • Saves companies money, resources, and time

john2

Date:: Nov 20, 2007

Time:: 20:03

It certainly is, you can find out at this website and even use it for development purposes if you want.

http://www.ip2location.com/

shashi.programmer

Date:: Sep 27, 2008

Time:: 02:24

Get IP address
By ASP <%= Request.ServerVariables("REMOTE_ADDR") %>
By PHP : <?php echo $ip=$_SERVER['REMOTE_ADDR']; ?>

By JAVA
import java.net.*;
import java.io.*;
import java.applet.*;

public class GetClientIP extends Applet {
public void init() {
try {
InetAddress thisIp =
InetAddress.getLocalHost();
System.out.println("IP:"+thisIp.getHostAddress());
}
catch(Exception e) {
e.printStackTrace();
}
}
}

//HTML Page
<HTML><HEAD></HEAD><BODY>
<APPLET CODE="GetClientIP.class"
HEIGHT=10 WIDTH=10>
</APPLET>
Check JAVA console for output
</BODY></HTML>

BY Coldfusion

<cfoutput>#CGI.REMOTE_ADDR#</cfoutput>

BY CGI
import cgi
import os

print "Content-type: text/html"
print ""

print cgi.escape(os.environ["REMOTE_ADDR"])

For further query go to http://www.shashionline.in

Answer this Question

New User

Email:

Upon submission of this form, you will automatically be registered as a Quomon user and we will send your login information to this address

Registered User

Username:

Password:

Forgot Your Password?

Tutorials cannot be submitted until the Answer Discussion is complete.

Submit answers in the Answer Discussion area

Ask a Question

Have a new question? Ask!

You have 100 characters to use



Top email Experts

View More

Rank

Expert

Points

1.

nidhi

475

2.

rcastagna

262

3.

PeterNZ

185

4.

oracleofDelphi

162

5.

jgivoni

160

6.

xarcus

75

7.

john2

40

8.

Dngrsone

35

9.

Garso22

25

10.

multani.sarbjit

25

Become an Expert

Register today to share your knowledge with the community and be recognized and rewarded for your contributions.


Register Here




"Psst, Quomon is a great site. Pass it on."     Tell a Friend  |   Link To Us  |   Save to Delicious  |   Digg! Digg it



Language Options

English:

www.quomon.com

Español:

www.quomon.es