Ensured that IP address and port are set as strings.