Establish Connection Modifications

Changed functionality to actually use the user input.
Made a change or two to avoid null index references due to denied socket
access errors.