adding more information when can't connect
use return value from strerror_r