473,698 Members | 2,690 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to capture Clients IP?

Hi All, How can you capture a clients IP Address when they are using DHCP
Protocol? Request.UserHos tAddress doesn't works!!!
TIA
Nov 18 '05 #1
3 1236
look in the servervariables collection

--
Regards

John Timney (Microsoft ASP.NET MVP)
----------------------------------------------
<shameless_auth or_plug>
Professional .NET for Java Developers with C#
ISBN:1-861007-91-4
Professional Windows Forms
ISBN: 1861005547
Professional JSP 2nd Edition
ISBN: 1861004958
Professional JSP
ISBN: 1861003625
Beginning JSP Web Development
ISBN: 1861002092
</shameless_autho r_plug>
----------------------------------------------

"Petrucci20 00" <no****@microso ft.com> wrote in message
news:Oq******** ******@TK2MSFTN GP10.phx.gbl...
Hi All, How can you capture a clients IP Address when they are using DHCP
Protocol? Request.UserHos tAddress doesn't works!!!
TIA

Nov 18 '05 #2
Try this...

Dim sX as string
Try
sX = Request.ServerV ariables("LOCAL _ADDR")
Catch
sX = ""
End Try
-----Original Message-----
Hi All, How can you capture a clients IP Address when they are using DHCPProtocol? Request.UserHos tAddress doesn't works!!!
TIA
.

Nov 18 '05 #3
Request.ServerV ariables("REMOT E_ADDR")
This should give you the IP address of the computer making the request.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
Hire top-notch developers at http://www.able-consulting.com

"Petrucci20 00" <no****@microso ft.com> wrote in message
news:Oq******** ******@TK2MSFTN GP10.phx.gbl...
Hi All, How can you capture a clients IP Address when they are using DHCP
Protocol? Request.UserHos tAddress doesn't works!!!
TIA

Nov 18 '05 #4

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

Similar topics

21
3459
by: Lasher | last post by:
Hi, I have clients using an application that allows users to change their passwords. The application uses the 'ALTER USER xxx IDENTIFIED BY.....' command. What I need to do is use Oracle to capture the username and password and send the info to another Oracle instance on a different server and update that users password. Basically I need to keep the user's password in sync between two different databases.
5
3130
by: ewillyb | last post by:
Hi, ASP.NET has some interesting behavior when the user hits the Enter key. If there are multiple ASP:Buttons (rendered as HTML submits) on the form, when the user hits enter, the first button's click event will fire and the page will submit. I have a series of pages with Previous and Next navigational Btns. The Previous button is the first button, so when the user hits enter, the previous page is served up. Enter should result in...
3
1553
by: revansx | last post by:
Folks, I aplogize for posting a second time. I am surprised at what little has be said about this issue. Is there another list that I should post this to? --------------------------------------------------------------------------- Please give me some advice on the following situation: I am attempting to develop a completely web-based set of tools that can
0
3490
by: j101 | last post by:
I am attempting to set up Q Capture on RH Linux (x86_64) using DB2 9 fp2, but there seems to be a general problem loading a specify MQ shared library "/opt/mqm/lib/libmqm_r.so". I have MQ v6 installed in the default directory and working. I can generate the similar errors in two ways (1) through the Replication Center attempting to validate the Q objects and (2) after manually creating the Q objects and running the asnqcap program. ...
2
7321
by: pampululu | last post by:
hello, I try to use directx.capture in my web application, I use visual studio web developper 2005 express with c# for code behind. I can list the webcam available on computer, no probem, my probem is to capture and display webcam in a control I tried like this: protected void Page_Load(object sender, EventArgs e) { Filters filters = new Filters(); Capture capture = new Capture(filters.VideoInputDevices,
1
3383
by: sangith | last post by:
Hi, I tried the packet capture module program. I did a file transfer using ftp from this host to another server. But when I ran the program, it was just hanging off and it did not print the src ip, dst ip, src port, dst port. Should I run this program as a Daemon? If so, how do I do that? I would appreciate your response.
1
3132
by: Steve | last post by:
Hi All I have a VB.net 2005 windows forms application which uses webcam to take photos of staff members etc for use within the application All works fine if an external webcam is used The problem I have is when clients have a laptop with built in webcam The first time I connect to the capture drivers all works well. If I try to
2
1808
Maidenz08
by: Maidenz08 | last post by:
Can anyone tell how to capture both sides of the chat logs? I can capture the logs from my end using key strokes and capturing the title of the current active window the user is typing in. but any clue on how to capture incoming IM messages. I have read that reading a particular port will solve the problem. But some clients like yahoo messenger use dynamic multiple ports. I also want to know if once the chat is established will the chat continue...
0
8683
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
8609
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
9031
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7739
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...
0
5862
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
4371
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4622
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3052
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2336
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.