Cant't connect to dev server
Description
After creating a new wails app, running wails dev I get the expected output :
however, when going to http://localhost:34115 in chrome or safari I get 'connection refused'
To Reproduce
- Create new Wails project
- Run
wails dev - navigate to localhost:34115
Expected behaviour
See wails project running in browser
Screenshots
https://github.com/user-attachments/assets/771cc0d4-16ca-4e00-87f6-866df06e6724
Attempted Fixes
running wails dev as sudo
Confirming network features are in the dev plist as in the resolved github issues
rebooted mac
Checked to see if wails or any other process is listening on 34115 (nothing is returned from sudo lsof -i -P | grep LISTEN | grep :34115)
System Details
wails doctor
Wails Doctor
# Wails
Version | v2.9.2
# System
┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
| OS | MacOS |
| Version | 15.1 |
| ID | 24B83 |
| Go Version | go1.22.1 |
| Platform | darwin |
| Architecture | arm64 |
| CPU | Apple M1 Pro |
| GPU | Chipset Model: Apple M1 Pro Type: GPU Bus: Built-In Total Number of Cores: 16 Vendor: Apple (0x106b) Metal Support: Metal 3 |
| Memory | 32GB |
└────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
# Dependencies
┌─────────────────────────────────────────────────────────────────────┐
| Dependency | Package Name | Status | Version |
| Xcode command line tools | N/A | Installed | 2409 |
| Nodejs | N/A | Installed | 20.11.1 |
| npm | N/A | Installed | 10.2.4 |
| *Xcode | N/A | Installed | 16.1 (16B40) |
| *upx | N/A | Available | |
| *nsis | N/A | Available | |
└────────────────────── * - Optional Dependency ──────────────────────┘
# Diagnosis
Optional package(s) installation details:
- upx : Available at https://upx.github.io/
- nsis : More info at https://wails.io/docs/guides/windows-installer/
SUCCESS Your system is ready for Wails development!
Additional context
No response
You can ping localhost to check whether localhost has been hijacked and see if localhost is mapped to 127.0.0.1.
Upgrade your Go version to 1.23.0 or above may fix problem.
This is working fine in 14.6.1. I wonder if something changes in the 15.0+ releases to local network stack. I'll be getting a 15.1 machine this week so can test.
I'm running on 15.1 but cannot reproduce this issue. Maybe it does have something to do with the Go version? Using 1.23.2 here.
# Wails
Version | v2.9.2
# System
┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
| OS | MacOS |
| Version | 15.1 |
| ID | 24B83 |
| Go Version | go1.23.2 |
| Platform | darwin |
| Architecture | arm64 |
| CPU | Apple M1 Pro |
| GPU | Chipset Model: Apple M1 Pro Type: GPU Bus: Built-In Total Number of Cores: 14 Vendor: Apple (0x106b) Metal Support: Metal 3 |
| Memory | 32GB |
└────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
# Dependencies
┌─────────────────────────────────────────────────────────────────────┐
| Dependency | Package Name | Status | Version |
| Xcode command line tools | N/A | Installed | 2409 |
| Nodejs | N/A | Installed | 20.18.0 |
| npm | N/A | Installed | 10.8.2 |
| *Xcode | N/A | Installed | 16.1 (16B40) |
| *upx | N/A | Installed | upx 4.2.4 |
| *nsis | N/A | Installed | v3.10 |
└────────────────────── * - Optional Dependency ──────────────────────┘