wails icon indicating copy to clipboard operation
wails copied to clipboard

Cant't connect to dev server

Open Joe1992w opened this issue 1 year ago • 5 comments

Description

After creating a new wails app, running wails dev I get the expected output : image however, when going to http://localhost:34115 in chrome or safari I get 'connection refused' image

To Reproduce

  1. Create new Wails project
  2. Run wails dev
  3. 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

Joe1992w avatar Nov 10 '24 14:11 Joe1992w

You can ping localhost to check whether localhost has been hijacked and see if localhost is mapped to 127.0.0.1.

superDingda avatar Nov 14 '24 02:11 superDingda

Upgrade your Go version to 1.23.0 or above may fix problem.

zeithrold avatar Nov 16 '24 09:11 zeithrold

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.

leaanthony avatar Nov 17 '24 10:11 leaanthony

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 ──────────────────────┘

ronen25 avatar Nov 17 '24 16:11 ronen25

image Same issue

RamboRogers avatar Dec 08 '24 18:12 RamboRogers