Reproduce the failure and note the port
The app shows a generic connection error. A working browser request to the same port proves the server is fine and the sandbox is the blocker.
Get-NetTCPConnection -State Listen | Where-Object LocalPort -eq 8080 | Select-Object LocalAddress,LocalPort,OwningProcess
Invoke-WebRequest http://localhost:8080/ -UseBasicParsing | Select-Object StatusCode
Get-Process -Id (Get-NetTCPConnection -State Listen | Where-Object LocalPort -eq 8080).OwningProcess | Select-Object Name,Id