Implemented function for taking connection to host on given port
Added user input for host and port range