Fix occasional failure in SocketConnectionAttemptTest

- Use the real host name with a firewall so that the connection attempt always takes long time on all platforms.
- Fixes #2128