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. Web Development
  3. ASP.NET
  4. How to know the country name the user is visiting the website?

How to know the country name the user is visiting the website?

Scheduled Pinned Locked Moved ASP.NET
tutorialquestion
6 Posts 4 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.
  • J Offline
    J Offline
    Jagadeesh Jupalli
    wrote on last edited by
    #1

    Hi, How to know the country name of the user is visiting the website? ~JJ

    C A 2 Replies Last reply
    0
    • J Jagadeesh Jupalli

      Hi, How to know the country name of the user is visiting the website? ~JJ

      C Offline
      C Offline
      Colin Angus Mackay
      wrote on last edited by
      #2

      Jagadeesh Jupalli wrote:

      How to know the country name of the user is visiting the website?

      You could use a service that takes the IP address and gives you back information about WHERE that IP address is located. This may be inaccurate for smaller countries. For example my IP address is registered in England while I'm located in Scotland. Or you could make an assumption based on the locale in the request string.

      Recent blog posts: * Introduction to LINQ to XML (Part 1) - (Part 2) - (part 3) My website | Blog

      J 1 Reply Last reply
      0
      • J Jagadeesh Jupalli

        Hi, How to know the country name of the user is visiting the website? ~JJ

        A Offline
        A Offline
        anee
        wrote on last edited by
        #3

        by viewing the google analytics of a website you can found that i also dont know how is that possible in asp.net :) rgds anee

        1 Reply Last reply
        0
        • C Colin Angus Mackay

          Jagadeesh Jupalli wrote:

          How to know the country name of the user is visiting the website?

          You could use a service that takes the IP address and gives you back information about WHERE that IP address is located. This may be inaccurate for smaller countries. For example my IP address is registered in England while I'm located in Scotland. Or you could make an assumption based on the locale in the request string.

          Recent blog posts: * Introduction to LINQ to XML (Part 1) - (Part 2) - (part 3) My website | Blog

          J Offline
          J Offline
          Jagadeesh Jupalli
          wrote on last edited by
          #4

          Hi Colin Angus Mackay, Can you specify any web service that takes IP address and gives back information about WHERE that IP address is located. Any links or ref. would be of great help.... Many Thanks, ~JJ

          N 1 Reply Last reply
          0
          • J Jagadeesh Jupalli

            Hi Colin Angus Mackay, Can you specify any web service that takes IP address and gives back information about WHERE that IP address is located. Any links or ref. would be of great help.... Many Thanks, ~JJ

            N Offline
            N Offline
            Nadia Monalisa
            wrote on last edited by
            #5

            Do you want a FREE web service that will give you Country information from IP address ? then get it from here http://www.webservicex.net/WS/WSDetails.aspx?WSID=64&CATID=12[^] But if you want to pay and get more featured service, then you may check here http://www.ip2country.net/ip2country/lookup.html[^] This website does not sell Web Service, rather they sell lookup DataBase. You will need to purchase a database from them and then use your ASP.NET look up query to get county information. I prefer the FREE Web service one..

            J 1 Reply Last reply
            0
            • N Nadia Monalisa

              Do you want a FREE web service that will give you Country information from IP address ? then get it from here http://www.webservicex.net/WS/WSDetails.aspx?WSID=64&CATID=12[^] But if you want to pay and get more featured service, then you may check here http://www.ip2country.net/ip2country/lookup.html[^] This website does not sell Web Service, rather they sell lookup DataBase. You will need to purchase a database from them and then use your ASP.NET look up query to get county information. I prefer the FREE Web service one..

              J Offline
              J Offline
              Jagadeesh Jupalli
              wrote on last edited by
              #6

              Thank you very much this is very helpful. :)

              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