wailsapp / wails

Create beautiful applications using Go
https://wails.io
MIT License
25.35k stars 1.22k forks source link

Cant't connect to dev server #3880

Open Joe1992w opened 4 days ago

Joe1992w commented 4 days ago

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

superDingda commented 1 day ago

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