CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 7 of 7
  1. #1
    Join Date
    Sep 2004
    Posts
    4

    Retrieving user id using IP address

    Hi,

    I am writing a small monitoring application for our helpdesk and am looking for an easy way to obtain a user id from a workstation using that workstations IP address. What I have in mind is a form that has buttons for each of the workstations mapped out. The IP addresses are static and so by clicking on the button for a specific workstation we can see who the user is that is currently logged on.

    Our network uses Novell Netware.

    Hope this makes sense.

    David McNorton

  2. #2
    Join Date
    Mar 2001
    Posts
    2,529

    Re: Retrieving user id using IP address

    I suggest that you index by MAC address.

    record: MAC ADDRESS, USER_ID, IP ADDRESS.

    Technologies such as DHCP that set the IP ADDRESS, tend to use the same IP for the same MAC ADDRESS day in and day out.

    You can still look up the IP Address given the User Name, however multiple users may have multiple IP Addresses for different machines. Just be aware.

    HTH,

    Asher

    PS IF THIS WAS HELPFUL RATE ME HIGH!

  3. #3
    Join Date
    Sep 2004
    Posts
    4

    Re: Retrieving user id using IP address

    Thnx for your input but I'm not sure how this would help. The problem is this is an open access area meaning students are not allocated a set PC but can chose from available workstations. We need to be able to quickly identify the student at a given workstation.

    We need to be able to take a screen shot of the workstation activity that includes the user ID for reporting abuse of the system.

  4. #4
    Join Date
    Jan 2000
    Location
    Olen, Belgium
    Posts
    2,477

    Re: Retrieving user id using IP address

    Well, if you need to be able to take a screenshot, you will have to have a program running on that computer (preferable one that you can connect to through winsock or so). In that case, you could also use that program to give you the username of the loggon on user.
    Tom Cannaerts
    email: cakkie@cakkie.be.remove.this.bit
    www.tom.be (dutch site)

  5. #5
    Join Date
    Sep 2004
    Posts
    4

    Re: Retrieving user id using IP address

    cakkie, thnx for this. We already have a remote view application which I can access through my application but unfortunately this doesn't display the user id. What would be neat would be for me to add a text box that displays the user id when I launch the remote view. I guess that's what I'm struggling with at the moment.

  6. #6
    Join Date
    Jan 2000
    Location
    Olen, Belgium
    Posts
    2,477

    Re: Retrieving user id using IP address

    Maybe you can use an application like BGInfo

    http://www.sysinternals.com/ntw2k/freeware/bginfo.shtml
    Tom Cannaerts
    email: cakkie@cakkie.be.remove.this.bit
    www.tom.be (dutch site)

  7. #7
    Join Date
    Sep 2004
    Posts
    4

    Re: Retrieving user id using IP address

    Thnx cakkie I'll take a look.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured