Please please please, do not use hostname as your host name. We usually use hostname as place holder to indicate that a real host name should be specified. Using hostname as an hostname is very confusing and error prone.
What is funny in your error message is that it says that only hostname:27019 responded and at the same time it says that hostname:27019 did not respond.
This makes me think that hostname, did I say it is a bad choice, does not resolve to the same IP in all of your hosts.
Is there any reasons why you are not using the default port number?