473,466 Members | 1,374 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Client ID

Any way I can get at a unique "Client ID" within server code ? I'm writing
some auditing and I want to record which particular client machine initiated
a request, for example.

I imagine in an internet environment the only unique client ID is the IP
address, can I get at this?

In an intranet environment I'd prefer to get the unique client machine name,
as known to the network (and possibly network user ID name while we are
about it!).

Nov 18 '05 #1
5 4138
Try Request.UserHostAddress and Request.UserHostName.

Eliyahu

"JezB" <je***********@blueyonder.co.uk> wrote in message
news:uL**************@TK2MSFTNGP12.phx.gbl...
Any way I can get at a unique "Client ID" within server code ? I'm writing
some auditing and I want to record which particular client machine initiated a request, for example.

I imagine in an internet environment the only unique client ID is the IP
address, can I get at this?

In an intranet environment I'd prefer to get the unique client machine name, as known to the network (and possibly network user ID name while we are
about it!).

Nov 18 '05 #2
There are 2 issues you may have to deal with when using a IP address for
a unique ID.

1 - Multiple people using the same IP address. Most LAN's use Network
Address Translation / Proxy Servers for Internet requests. This means
that you could have 1000's of users all using 1 IP address (as you see it).

2 - Dynamic Address assignment. Say you have 5000 users who are on AOL,
one user connects one day using the IP address x. The next day he
connects and has IP address y, and a totally different user has IP
address x.

Both of these are only a issue depending on the way you are using the
information. But thought it was worth a mention :)

JezB wrote:
Any way I can get at a unique "Client ID" within server code ? I'm writing
some auditing and I want to record which particular client machine initiated
a request, for example.

I imagine in an internet environment the only unique client ID is the IP
address, can I get at this?

In an intranet environment I'd prefer to get the unique client machine name,
as known to the network (and possibly network user ID name while we are
about it!).

Nov 18 '05 #3
Good points. May be you should consider using cookies.

Eliyahu

"Arran Pearce" <arranpearce@NO_SPAMcellhire.com> wrote in message
news:uC**************@TK2MSFTNGP12.phx.gbl...
There are 2 issues you may have to deal with when using a IP address for
a unique ID.

1 - Multiple people using the same IP address. Most LAN's use Network
Address Translation / Proxy Servers for Internet requests. This means
that you could have 1000's of users all using 1 IP address (as you see it).
2 - Dynamic Address assignment. Say you have 5000 users who are on AOL,
one user connects one day using the IP address x. The next day he
connects and has IP address y, and a totally different user has IP
address x.

Both of these are only a issue depending on the way you are using the
information. But thought it was worth a mention :)

JezB wrote:
Any way I can get at a unique "Client ID" within server code ? I'm writing some auditing and I want to record which particular client machine initiated a request, for example.

I imagine in an internet environment the only unique client ID is the IP
address, can I get at this?

In an intranet environment I'd prefer to get the unique client machine name, as known to the network (and possibly network user ID name while we are
about it!).

Nov 18 '05 #4
Aha - cookies are another thing our company guidelines tells us we can't use
! No client footprint.

"Eliyahu Goldin" <re*************@monarchmed.com> wrote in message
news:em**************@TK2MSFTNGP09.phx.gbl...
Good points. May be you should consider using cookies.

Eliyahu

"Arran Pearce" <arranpearce@NO_SPAMcellhire.com> wrote in message
news:uC**************@TK2MSFTNGP12.phx.gbl...
There are 2 issues you may have to deal with when using a IP address for
a unique ID.

1 - Multiple people using the same IP address. Most LAN's use Network
Address Translation / Proxy Servers for Internet requests. This means
that you could have 1000's of users all using 1 IP address (as you see

it).

2 - Dynamic Address assignment. Say you have 5000 users who are on AOL,
one user connects one day using the IP address x. The next day he
connects and has IP address y, and a totally different user has IP
address x.

Both of these are only a issue depending on the way you are using the
information. But thought it was worth a mention :)

JezB wrote:
Any way I can get at a unique "Client ID" within server code ? I'm writing some auditing and I want to record which particular client machine initiated a request, for example.

I imagine in an internet environment the only unique client ID is the IP address, can I get at this?

In an intranet environment I'd prefer to get the unique client machine name, as known to the network (and possibly network user ID name while we are about it!).


Nov 18 '05 #5
My sympathies.

May be the real-life experience will prompt your company to soften the
guidelines.

Eliyahu

"JezB" <je***********@blueyonder.co.uk> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Aha - cookies are another thing our company guidelines tells us we can't use ! No client footprint.

"Eliyahu Goldin" <re*************@monarchmed.com> wrote in message
news:em**************@TK2MSFTNGP09.phx.gbl...
Good points. May be you should consider using cookies.

Eliyahu

"Arran Pearce" <arranpearce@NO_SPAMcellhire.com> wrote in message
news:uC**************@TK2MSFTNGP12.phx.gbl...
There are 2 issues you may have to deal with when using a IP address for a unique ID.

1 - Multiple people using the same IP address. Most LAN's use Network
Address Translation / Proxy Servers for Internet requests. This means
that you could have 1000's of users all using 1 IP address (as you see it).

2 - Dynamic Address assignment. Say you have 5000 users who are on AOL, one user connects one day using the IP address x. The next day he
connects and has IP address y, and a totally different user has IP
address x.

Both of these are only a issue depending on the way you are using the
information. But thought it was worth a mention :)

JezB wrote:

> Any way I can get at a unique "Client ID" within server code ? I'm

writing
> some auditing and I want to record which particular client machine

initiated
> a request, for example.
>
> I imagine in an internet environment the only unique client ID is
the IP > address, can I get at this?
>
> In an intranet environment I'd prefer to get the unique client
machine
name,
> as known to the network (and possibly network user ID name while we

are > about it!).
>
>
>



Nov 18 '05 #6

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

Similar topics

5
by: Matt | last post by:
I think this is the basic concept in ASP server-side development. My boss told me web application is NOT client-server application. I argued with him because browser is the client, and the server...
15
by: Michael Rybak | last post by:
hi, everyone. I'm writing a 2-players game that should support network mode. I'm now testing it on 1 PC since I don't have 2. I directly use sockets, and both client and server do...
18
by: cjl | last post by:
Hey all: I know that it is silly in the age of Google to 'lose' something on the internet, but I recently checked out a project that had implemented a database with a subset of SQL in pure...
2
by: Raquel | last post by:
How do I know whether the 'runtime client' and the 'application development client' are installed on my machine? When I issue the command "db2licm -l", it gives the following output: Product...
6
by: Ken Allen | last post by:
I am relatively new to .Net and C#, but I hav ebeen programing in other languages and done some COM work for a number of years. I am attempting to understand how to map an older program...
4
by: rs | last post by:
how I the client tell the server that the socket is closed? or this there an even that informs the server that the clients socket is close? Oh, I am using vb.net 2003 Thanks
2
by: J Huntley Palmer | last post by:
I am having a horrific time integrating uw-imap's c-client for imap support in php. The problem is a whole bunch of "Text relocation remains referenced against symbol" errors during linking....
0
by: khu84 | last post by:
Here is client server very simple code, seems to work with telnet but with with web client code gives blank output. Following is the server code:- <?php function...
2
by: nsaffary | last post by:
hi I hava a client/server program that run correctly when i run it in one computer(local) but when I run client on a one computer and run server run on another, connection does not stablish.(I set...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...
1
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...
0
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...
0
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 ...

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.