consider hostname ':0' as 'localhost' too