Safe open ports get from the system
Save the ports to a config file