Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. getting country code based on IP

getting country code based on IP

Scheduled Pinned Locked Moved C#
htmliosdatabasewcfcom
6 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    uglyeyes
    wrote on last edited by
    #1

    all the free web services seems to reject request after it reaches certain daily hits. I used this one http://dotnetguts.blogspot.com/2008/06/finding-country-from-visitors-ip-in.html\[^\] but its getting a wrong country codes for example in below. I am using my iphone which is in sydney, australia, its logging country code as FR. could someone please help? below is the details logged in database IP, countrycode, browser agent 58.104.249.183 FR Mozilla/5.0 (iPhone; U; CPU iPhone OS 3_0 like Mac OS X; en-us) AppleWebKit/528.18 (KHTML, like Gecko) Version/4.0 Mobile/7A341 Safari/528.16

    D 1 Reply Last reply
    0
    • U uglyeyes

      all the free web services seems to reject request after it reaches certain daily hits. I used this one http://dotnetguts.blogspot.com/2008/06/finding-country-from-visitors-ip-in.html\[^\] but its getting a wrong country codes for example in below. I am using my iphone which is in sydney, australia, its logging country code as FR. could someone please help? below is the details logged in database IP, countrycode, browser agent 58.104.249.183 FR Mozilla/5.0 (iPhone; U; CPU iPhone OS 3_0 like Mac OS X; en-us) AppleWebKit/528.18 (KHTML, like Gecko) Version/4.0 Mobile/7A341 Safari/528.16

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      I don't know of any "free" sites that do this without a hit-limit. As with everything else, you get what you pay for...

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
           2006, 2007, 2008
      But no longer in 2009...

      U 1 Reply Last reply
      0
      • D Dave Kreskowiak

        I don't know of any "free" sites that do this without a hit-limit. As with everything else, you get what you pay for...

        A guide to posting questions on CodeProject[^]
        Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
             2006, 2007, 2008
        But no longer in 2009...

        U Offline
        U Offline
        uglyeyes
        wrote on last edited by
        #3

        I am not looking to pay for the tool. could you please assist as to why the one that I am using logs incorrect country code. its not the case always. please see the other logs. the first record is getting incorrect country code while remaining is correct. 58.104.249.183 FR 203.6.205.31 AU 203.6.205.31 AU 98.129.43.4 US

        L 1 Reply Last reply
        0
        • U uglyeyes

          I am not looking to pay for the tool. could you please assist as to why the one that I am using logs incorrect country code. its not the case always. please see the other logs. the first record is getting incorrect country code while remaining is correct. 58.104.249.183 FR 203.6.205.31 AU 203.6.205.31 AU 98.129.43.4 US

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          What tool did you use to get the location ? Because if I use this one, it works fine : http://www.geoiptool.com/de/?IP=58.104.249.183[^]

          U 1 Reply Last reply
          0
          • L Lost User

            What tool did you use to get the location ? Because if I use this one, it works fine : http://www.geoiptool.com/de/?IP=58.104.249.183[^]

            U Offline
            U Offline
            uglyeyes
            wrote on last edited by
            #5

            how do i use this? and does it blocks after it reaches certain limit?

            U 1 Reply Last reply
            0
            • U uglyeyes

              how do i use this? and does it blocks after it reaches certain limit?

              U Offline
              U Offline
              uglyeyes
              wrote on last edited by
              #6

              Ok I found this and implemented it and works all ok GeoIP - Where are your internet visitors coming from?[^] but does it have any restriction etc? If i call this service say 10000 times a day will it block my IP?

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups