I was wondering if it is possible to observe the network traffic generated by Unity via script? I’m not worried about the usage of the average Joe, but in order to protect against people that generate too many requests (and thus too much network data), I need to monitor the bytes received/sent for each connection. Just counting the RPC’s is insufficient unfortunately.
IM not at all an expert but id be fairly certain you’d use a 3rd party software program listening in on the port there connecting to you from and then if you have multiple connections from many users in that port monitoring it by IP.
I think if you want to bash someone from flooding your server with requests your going to want to use network software not unity at all.
Unity 2017 and earlier (?) has a profiler under window-> profiler
Here you can see your network activity if you scroll down to Network messages / Network operations
I’m not sure you can monitor the actual bytes send. But it gives a good estimation of how many load you put on your network.