Connecting to a machine internally fails

// code 1
await fetch(`http://${id}.vm.${app}.internal/function`)

// code 2
await fetch(`http://${id}.vm.${app}.internal:3000/function`)

//code 3
await fetch(`http://[${private_ip}]:3000/function`)

//machine settings
			config: {
				image: "browserless/chrome",
				guest: {
					cpu_kind: "shared",
					cpus: 1,
					memory_mb: 1024,
				},
				env: {
					APP_ENV: "production",
				},
				services: [
					{
						ports: [
							{
								port: 443,
								handlers: ["tls", "http"],
							},
							{
								port: 80,
								handlers: ["http"],
							},
						],
						protocol: "tcp",
						internal_port: 3000,
					},
				],
			},

// error
connect ECONNREFUSED fdaa:1:2581:a7b:259:8ee6:fb07:2:3000

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.