Auto-read ip address

Did so instead of manually inputting the ip address, it will now
automatically search for it.