473,397 Members | 2,033 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

How to capture Clients IP?

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

--
Regards

John Timney (Microsoft ASP.NET MVP)
----------------------------------------------
<shameless_author_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_author_plug>
----------------------------------------------

"Petrucci2000" <no****@microsoft.com> wrote in message
news:Oq**************@TK2MSFTNGP10.phx.gbl...
Hi All, How can you capture a clients IP Address when they are using DHCP
Protocol? Request.UserHostAddress doesn't works!!!
TIA

Nov 18 '05 #2
Try this...

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

Nov 18 '05 #3
Request.ServerVariables("REMOTE_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

"Petrucci2000" <no****@microsoft.com> wrote in message
news:Oq**************@TK2MSFTNGP10.phx.gbl...
Hi All, How can you capture a clients IP Address when they are using DHCP
Protocol? Request.UserHostAddress 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
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...
5
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...
3
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?...
0
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...
2
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...
1
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...
1
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...
2
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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,...
0
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...
0
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,...
0
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...
0
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...

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.