Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to get IP address,username, file..etc of connected client.... 1

Status
Not open for further replies.

wallvn

Programmer
May 29, 2005
3
KR
Dear folks,
I have a shared folder on server, I want to capture some information of a client such as IP address, username that client is used to connect to that shared folder.

How can I do that? or Do you have any suggestion?
Please help me asap.

Thanks a lot,
Wall
 
Could you please tell me in more details about that? I am a VC++ newbie.

I would like to get the information such as below:

IP address Username File
192.2.x.x usr1 file.txt

Thanks~
 
A shared folder is maintained by a server, not by your station. The server administrator may set an audit on your folder then collect access records in the server event log.
As far as I know you can't do that (and then analize correspondent records from a server log) w/o server administrator.

The getpeername() gets a net name by a net address. Alas, it's another story...
 
Yeah, you are right, assuming that I am a server administrator, so, I can set an audit on shared folder, then collect access records in the server event log...

But the problem is, I don't know how to get the ID address, username, file/folder in that folder event log...

I try to see in the event viewer, but...there is no information like that.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top