473,543 Members | 1,908 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to get address(country ) by ip ??

10 New Member
hi
i need help
i want to get client ip address then according to this i will know his country.
please give me a code for this

edit by mod: don't post in bold
--insertAlias (moderator)
Jan 28 '09 #1
5 3571
PRR
750 Recognized Expert Contributor
Expand|Select|Wrap|Line Numbers
  1. Response.Write(Request.UserHostAddress.ToString()); 
  2.  
you can also use Whatismyip
Jan 28 '09 #2
tlhintoq
3,525 Recognized Expert Specialist
@mahmodm3
The folks here aren't a free code writing service for your homework or job.

They are more than willing to help someone who has run into a snag on their project.

Please show what you have tried so far... provide code snippets of what you have already written and where it is failing to produce the results you expected and someone here can probably steer you in the right direction.
Jan 28 '09 #3
mahmodm3
10 New Member
i don't know how to start
i need the code for my request

and
this code : Response.Write( Request.UserHos tAddress.ToStri ng())
its just give me the ip but i need to get a country according the ip

Again, please stop posting in bold!
--insertAlias, Moderator
Jan 28 '09 #4
Curtis Rutland
3,256 Recognized Expert Specialist
There is no built in way to decode where an IP is from. There are several sites offering a paid service for you to find out. Also, I believe that some companies sell lookup tables for you to put in your own database to do your own lookups.


http://www.google.com/search?hl=en&r...-revision&cd=5
Jan 28 '09 #5
mahmodm3
10 New Member
ok thanks man
i appricate yor help
Jan 28 '09 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

8
5519
by: T0MA | last post by:
How can I view visitors country using php/apache?
2
3544
by: Zyron | last post by:
Hello! I'm developing a web page that has a goal of providing personal content, which means that all information should be written in their own language. I'm about to finish my Geo targeting system that will identify where the users are coming from based on their IP address, and for this project I would really like to replace the English...
6
2726
by: MX1 | last post by:
Please help if you can. I have a form with an address field. There are 6 fields: Name1 Name2 Address1 Address2 CityStateZip Country
5
3509
by: Kamaluokeakua | last post by:
I have to write an application that deals with clients in multiple countries. The addresses, phone numbers, country id and currency information has to be stored into a database that allows for the format of any country. I would like to be able to automatically display the information in the format of their country based on the information...
7
1908
by: Lloyd Dupont | last post by:
from the IP of the request ?
7
7150
by: Antoni Massó Mola | last post by:
Hi, I need to detect from which Country (City would be great) the user is connecting. Is there any free script for doing this in C#? Thanks
5
3919
by: Kevin Newman | last post by:
Does anyone know of any application (AJAX or other) that will display the appropriate address for for the selected (or detected) country? If not, does anyone know where I can find a list or database of address formats, so that I can make a collection of xml files (or php and/or javascript classes) that represent the address format for each...
13
3067
by: bushi | last post by:
hi everyone! i want to get the ipaddress,and the country name of a webpage visitor,using asp.Net(C#).if anyone knows about it,plz rply me. thanx in advance.
4
2064
by: kang jia | last post by:
hi i am doing mailinglist currently. the code in my first page is like this : : <html> <head> <link rel="stylesheet" type="text/css" href="gallery.css" /> <script language="JavaScript"> <!--
0
7411
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7354
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
1
7354
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7693
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5888
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5282
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
4898
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3394
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
643
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.