Cleaned up the code. Made it so you have to enter host and ip address