Add checks for open ports and sockets