*** Exception: getAddrInfo: does not exist (Name or service not known)
connectTo is not a web browser, but low level TCP/IP; it wants a hostname, and only a hostname. If you wanted to write a web browser or HTTP fetch utility, you would connectTo the host on port 80 and then conduct an HTTP exchange to GET /ip.
There are higher level libraries if you want to use HTTP without writing it yourself.
--