Fixed so it parses the correct ip address