473,796 Members | 2,550 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Obtain users IP address?

How does one capture the IP address of the user ....and...is there anything
'unique' you can do with this info besides knowing the ip number of his
domain/browser?

Thanks
Jason
Jul 19 '05 #1
2 5186
jason wrote on 31 aug 2003 in microsoft.publi c.inetserver.as p.general:
How does one capture the IP address of the user
IP = request.serverv ariables("remot e_addr")
....and...is there
anything 'unique' you can do with this info besides knowing the ip
number of his domain/browser?


No, it could very well be the IP of a proxy or of a dial-in modem

But if you have a fixed IP yourself, you van very well do something special
like excluding yourself from public counters:

<% If request.serverv ariables("remot e_addr") <> "123.123.123.12 3" then %>
..... clientside public counter code, like http://www.nedstatbasic.net/ ..
<% End If %>
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 19 '05 #2
Gazing into my crystal ball I observed "jason" <ja***@catamara nco.com>
writing in news:#C******** *****@TK2MSFTNG P11.phx.gbl:
How does one capture the IP address of the user ....and...is there
anything 'unique' you can do with this info besides knowing the ip
number of his domain/browser?

Thanks
Jason


Request.Serverv ariables("REMOT E_ADDR") - will give you the IP
Request.Serverv ariables("USER_ AGENT") - will give you browser (User Agent)
information.
Request.Serverv ariables("HTTP_ REFERER") - will give you the page/site the
person came from
Request.Serverv ariables("URL") - will give you the name of the page

There are all kinds of things you can do with this information, like roll
your own stats, if you don't have access to raw server logs.

You can also do rudimentary browser sniffing. For example, IE does not
support position:fixed so you can serve IE a style sheet that uses
position:absolu te instead. But, please do not use browser sniffing to do
something silly like "You have to use IE to view this site".

--
Adrienne Boswell
Please respond to the group so others can share
http://www.arbpen.com
Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
1793
by: marco | last post by:
I'd search a lot ... but i had not found how can i obtain my ip address (when i'm connected to the www) ?! thanks a lot for any tips marco
5
6707
by: Jeronimo Bertran | last post by:
Hello, We have developed a socket tcpip server in .net that accepts calls from clients. Using the connected socket we are able to use the Socket.RemoteEndPoint to obtain the IP address of the client. Is there any way to obtain the MAC address for the client? Thanks Jeronimo
4
2668
by: Ed Willis | last post by:
We have several offices that have a DSL or Cable modem where the IP address is dynamic and changes often. I created a VB app that obtains the IP address but it obtains the IP address within the firewall and we need the public IP address of the machine outside the firewall so we can use Remote Desktop connection for problem resolution etc. Here is my current code: Dim myWorkstation As String = System.Net.Dns.GetHostName() Dim IPAdress...
4
4187
by: stuff | last post by:
Is it possible to obtain the client's ip address from a SimpleXMLRPCServer instance or subclass instance? When running SimpleXMLRPCServer with logRequests = 1, the xmlrpc server prints out the fqdn on the console, however, I'm not sure if this information (either fqdn or ip address) is available to the SimpleXMLRPCServer instance. Can somebody shed some light on how to obtain this information? Thanks,
0
1215
by: ngr | last post by:
I want to be able to retrieve an ip address: At the moment I have to do the following OBTAIN A DOS WINDOW ROUTE PRINT From this I obtain the IP Address from the dos window thus.... Network Destination Netmask Gateway Interface Metric 127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1
8
11379
by: Paul Bromley | last post by:
Thanks for your tolerance on this list. I asked the question regarding Commercial Copy Protection along with Unique PC Idnetifier and obtaining the active IP address. This was all to identify and tie down software to each PC on a network. I have just realised that the unique identity that I need to go for on the network and should be easy to get in a foolproof manner is the computer name. Hence which method will ALWAYS return the computer...
7
3322
by: Brian Cryer | last post by:
What I'm looking for is a way to tell if two sessions are from the same physical PC or from different PCs (within the same organisation say). This is with the view to possibly enforcing license restrictions, i.e. limiting the number of pcs that user account can connect from (say to 1 perhaps 2) but not the number of open sessions that user can have. So, with that in mind I was wondering whether it was possible to obtain the local IP...
0
1569
by: leonardo.schmidt | last post by:
Due to some connectivity problems with a client's VPN software, I'm developing an app that needs to obtain the current logged user's Exchange server address & add a new route (among other well-known ones) to it in the computer's table, so Outlook 2003 can work properly. Is there any easy way to obtain that address (maybe without using WMI)? TIA
3
2527
by: EnglishmaninNY | last post by:
Hi, I am setting up a self service portal that an internal user can visit in order to obtain their system and network information to then copy/paste to the Helpdesk. The information i hope to obtain is as follows; IP Address: MAC Address: Username: Host Name:
0
9685
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9531
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10459
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10018
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9055
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7553
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6795
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5578
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3735
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.