[core] accept $SERVER["socket"] without port, use server.port as fallback (fixes...