First thanks to Barry, Chad and Bradley for their thoughts.
I tried Bradley's suggestion of using the IP address and that solved the problem. I guess I can assume that port 1652 is open?
I think the problem might be that this server is set up to do http so maybe I should be using the fully qualified internet host name rather than the server name?