Post Reply 
Stopping Sleep When MinimServer actively streaming
09-10-2025, 04:22 (This post was last modified: 09-10-2025 04:45 by chaconne.)
Post: #4
RE: Stopping Sleep When MinimServer actively streaming
If I were going to try this I would look into monitoring outgoing network traffic. For a very crude approach, run

Quote:netstat -e

and parse the output. Run it every few minutes and remember the previous value, and you can calculate how many bytes were sent in that interval. This may give you some false positives if the PC is doing other work, but in that case you probably don't want it going to sleep either.

You could get more precise by only monitoring the right port numbers and/or protocols, or if you're up to a little C programming you could replace netstat.exe with something more specific, but those would only be marginal improvements.

P.S. I just ran a web search on powershell+monitor+network+traffic and found these links

Gathering Network Statistics with PowerShell

and

Network Traffic Monitoring in Windows 11 Using PowerShell

Have fun!
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Stopping Sleep When MinimServer actively streaming - chaconne - 09-10-2025 04:22

Forum Jump:


User(s) browsing this thread: 1 Guest(s)