List who is currently connected to an IIS web server
Solution 1
You have an understanding issue with the HTTP protocol. It's not like, say, FTP, where the client computer is keeping a persistent connection open to the server computer while the user is "browsing". Connections from clients are transient.
Having said that, assuming you're requiring authentication to the site, you could use the site's log file to see who has recently been accessing pages. If you're not requiring authentication, you're just going to see client IP addresses.
Solution 2
I don't think you can get the individual users at the server level, but you can user perfmon counters to get counts of how many active connections there are.
For IIS6 (from the Technet Article):
1.Open Administrative Tools, and then click Performance.
2.Right-click the System Monitor details pane, and then click Add Counters.
3.Do one of the following:
To monitor any computer on which the monitoring console is run, click Use local computer counters.
-or-
To monitor a specific computer, regardless of where the monitoring console is run, click Select counters from computer, and specify a computer name or IP address.
4.In Performance object, click:
Web Service to monitor active Web connections.
-or-
FTP Service to monitor active FTP connections.
5.Click Select counters from list, and select Current Connections.
6.Click All instances.
7.Click Add, and then click Close.
Solution 3
See Evan's answer. Also netstat | find ":http" will show you which hosts connected in the last minute or so (whatever the TIME_WAIT interval is).
JR
Related videos on Youtube
user1825
Updated on September 17, 2022Comments
-
user1825 over 1 year
Is it possible to see what AD users are currently browsing an internal (intranet) IIS web server?
-
Kiquenet over 5 yearsautomation using powershell ?
-
Kiquenet over 5 years