Fixed IP address

IP address should be correctly read now. I had to fix some tab issues
too.