Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cant't connect to dev server #3880

Open
Joe1992w opened this issue Nov 10, 2024 · 5 comments
Open

Cant't connect to dev server #3880

Joe1992w opened this issue Nov 10, 2024 · 5 comments
Labels
Bug Something isn't working High Priority

Comments

@Joe1992w
Copy link

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

wails.mov

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 Joe1992w added the Bug Something isn't working label Nov 10, 2024
@superDingda
Copy link

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

@zeithrold
Copy link

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

@leaanthony
Copy link
Member

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.

@ronen25
Copy link

ronen25 commented Nov 17, 2024

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

@RamboRogers
Copy link

image Same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working High Priority
Projects
None yet
Development

No branches or pull requests

6 participants