Created a createSocket method and also added a getPortListing that gets the ports that should be open and opens them