Test localhost resolution and not port selection