How to detect internet connection in Unreal Editor and Project Package?

I need to be able to detect if unreal is connected to an internet connection or not in editor and package build. I have tried the HasActiveWiFiConnection() but it only returns false in the editor whether the user is connected to the internet or not. I am out of options. Can someone help me?

Imagine 1,000 players playing online at the same time, Wouldn’t this cause Denial of Service for the players towards that website?