English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Using Windows server. IIS 6.0 and .NET 2.0

2006-06-08 09:26:39 · 4 answers · asked by Anonymous in Computers & Internet Programming & Design

4 answers

in .NET Framework, you can use:

Request.UserHostName (to get the host name)
Request.UserHostAddress (to get the IP)

As to the IP address and what country it is from, that's some pretty tricky stuff. You have to look up ARIN info on the IP address... you'll really want to do that manually, unless you're prepared for a pile of work.

2006-06-08 09:49:53 · answer #1 · answered by evolver 6 · 2 0

You can use Request.UserHostAddress command in dot net. However, not all ip addresses that you'll get will necessarily belong to the client. Most companies are behind firewalls and proxy servers therefore the ip address you'll end up with will be that of the proxy.

This can cause you problems when trying to determine where the user is coming from.

Hope this helps

2006-06-08 11:49:22 · answer #2 · answered by Anonymous · 0 0

Find out the ip addresses by having a look to the server logs.
Pick up a single address and use this web page to find out the country of origin:

http://www.all-nettools.com/toolbox,geo

For fully automated processing use a log analyser like for example webalizer

http://www.mrunix.net/webalizer/

2006-06-08 09:44:59 · answer #3 · answered by Anonymous · 0 0

it sounds like your trying to hack someone
bad bad bad!

2006-06-08 11:31:45 · answer #4 · answered by ? 3 · 0 0

fedest.com, questions and answers