Added system for checking Either IP Address or Hostname.

TODO: Figure out why it calls an Exception