FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


IP of Country?





roeenoy
How i can find by ip the country of the user?

is there any list that i can use?

is there any system like that?


thanks for all
Stubru Freak
roeenoy wrote:
How i can find by ip the country of the user?

is there any list that i can use?

is there any system like that?


thanks for all


I have a list, it's in this format:

Quote:
"33996344","33996351","GB","GBR","UNITED KINGDOM"
"50331648","69956103","US","USA","UNITED STATES"
"69956104","69956111","BM","BMU","BERMUDA"
"69956112","83886079","US","USA","UNITED STATES"


If you want it I'll send it to you in an e-mail. The list is too long to post here. I forgot where I got it. You'd better do this server-side as it is 3.219kB so a little big to download each site visit.
Deathplanter
Just put the IP in search box of www.ripe.net, it'll tell you all the details about provider,country and IP owner Smile
rajhank
you can also check out

http://www.ip2country.net/ip2country/lookup.php
cambridge
I always use in my php code:

Code:

  global $REMOTE_ADDR;
  $create_ip = $REMOTE_ADDR;
  $any_variable_to_future_use = gethostbyaddr ($create_ip);


and $any_variable will contain host name, not numeric ip
it can be a good starting point, right? you can then take part after last dot which is country code and do anything you need

good luck
yjwong
You could also use GeoIP, as most web applications use it. But you need to pay Sad

http://www.maxmind.com/app/products
Stubru Freak
Yeah! I found out where I got the list:
http://ip-to-country.webhosting.info/node/view/6
Complete list of countries by IP address.
JayBee
I use TFSforMAMBO with my mambo cms and it has database of IP
so you can try to use it
http://mamboxchange.com/projects/tfsformambo/
tony
This topic is very useful. i had also wanted to do the same as the user who made first post.
exarkun
Is it possible to obtain the IP from emails a person sent me? He had been writing nonsense to me for many times and therefore wishes to know at least where he came from, and report it to his ISP.
Marston
I don't think so.
Deathplanter
exarkun wrote:
Is it possible to obtain the IP from emails a person sent me? He had been writing nonsense to me for many times and therefore wishes to know at least where he came from, and report it to his ISP.

Yeah,you usually've got that info in headers of e-mail. I can't tell you how to get there,though, cause it's diffirent in every mailing app.
badai
u can set your e-mail client to display full header or view source. then u can see the orginating IP address will all the relay servers the e-mail went thru.

exarkun wrote:
Is it possible to obtain the IP from emails a person sent me? He had been writing nonsense to me for many times and therefore wishes to know at least where he came from, and report it to his ISP.
shamil
Stubru Freak wrote:
Yeah! I found out where I got the list:
http://ip-to-country.webhosting.info/node/view/6
Complete list of countries by IP address.

These are few lines from that file i have just downloaded.
"1054138368","1054146559","AZ","AZE","AZERBAIJAN"
"1054146560","1054179327","RU","RUS","RUSSIAN FEDERATION"
"1054179328","1054187519","GB","GBR","UNITED KINGDOM"
"1054187520","1054195711","BG","BGR","BULGARIA"
My guess is those two numbers in each line shows the range of ip address in decimal. if i am right 1054138368 does not stand for valid ip else what is the format of file or have i mistaken?
hexkid
shamil wrote:
if i am right 1054138368 does not stand for valid ip else what is the format of file or have i mistaken?


I think 1054138368 is, in dotted-notation, 62.212.224.18 (it could be the other way around)

62*256*256*256 + 212*256*256 + 224*256 + 18 = 1054138386


Have a look at wikipedia's article about IPv4.
rfwrangler
Here is a link to a code snippet that should do what you are wanting to do

http://www.zend.com/codex.php?id=1047&single=1
ogah
you can use my website

to check your country ip http://ogah.uv.ro/geoip.php

to check other ip, insert the ip like this http://ogah.uv.ro/geoip.php?ip=41.101.102.196
Related topics
What is the Difference Between ..... Indonesian / Country A
Visitor ip PHP (E107)
ip address
Create an e-annoyance, go to jail
Adsense lies
Looking for a person via his email or IP
IP => Country => Drop Down Box!
An ip 2 location system in design, interesting find
Dns server on a dynamic ip address?
ip-adress.com
Outrageous: Denmark re-publish Mohammud cartoons
ip 2 country, city database
[ask] country Ip number
How to get the IP address of People who Visit my Site
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.