Check Is a port open?

Is there a way to check a port is open or not in unreal engine 4 c++ or blueprint ?

I used port test tool found from google search to test if the port is open. Before doing the test, you need to launch your server first.