Dos & DDos attacks

Hey guys, I’m just wondering if my server is being attacked with Denial Of Service. I’m playing localhost and usually have a ping of 5. There’s no-one else on here and I keep getting random lag. My ping shoots up to 80+ and I can hardly move without freezing or jumping back to my original location. I’m aware that attacks on Garry’s Mod servers are on the rise. Hopefully something can be done to combat it.

Any console errors?

Not ddos or dos. If it was, you as localhost would be unaffected unless the server went down.