Need to log IPs so I can ban trolls

I followed this (quite old) guide and they no longer work and nobody is responding in them. Would anyone be willing to update the guide with websockets in mind?

I don’t know enough to fix it myself but I’m still learning.

What happens after I make the changes is that I can enter the room on my 5g cell phone but I cannot hear myself on my PC. If I change my phone to wifi, I can hear it fine. So something isn’t routing right.
It works fine in 5g (or externally to my network) before making changes.