How to fix error "localhost refused to connect" on locally hosted wesbite?

Unable to access my locally hosted website in simulator. getting error: “localhost refused to connect”. The tunnel is already active and running.

Hi Emma,

Localhost URL/IP is not compatible with various browsers and browser versions.

As a workaround please use "https://localhost.lambdatest.com/" OR "10.0.0.15" as your localhost URL.