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

connection refused #10

Open
manojkal opened this issue Jul 10, 2017 · 2 comments
Open

connection refused #10

manojkal opened this issue Jul 10, 2017 · 2 comments

Comments

@manojkal
Copy link

Could you please help with the below issue. I am not able to connect.
Thanks

wsd -url=ws://localhost:1337/ws
connecting to ws://localhost:1337/ws from http://localhost/...
panic: websocket.Dial ws://localhost:1337/ws: dial tcp [::1]:1337: getsockopt: connection refused
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x0 pc=0x4c29b1]

goroutine 1 [running]:
panic(0x73df40, 0xc82000e100)
/usr/lib/golang/src/runtime/panic.go:481 +0x3e6
golang.org/x/net/websocket.(*Conn).Close(0x0, 0x0, 0x0)
/home/Host1/app/src/golang.org/x/net/websocket/websocket.go:236 +0xd1
panic(0x725260, 0xc8200aeb00)
/usr/lib/golang/src/runtime/panic.go:443 +0x4e9
main.main()
/home/Host1/app/src/github.com/alexanderGugel/wsd/main.go:126 +0x8c7

@anaaChacon
Copy link

anaaChacon commented Jun 3, 2020

#14 +1

@anaaChacon
Copy link

@manojkal I am still testing to try to fix this, because the problem slows me down.
The test I have done and it has worked well for me at the moment is:

Case success

At the moment my disconnection problem seems to be solved by launching the application with the following command:
ionic cordova run android --address XXX.XXX.X.XXX --port 5555 --livereload

XXX.XXX.X.XXX -> It is equal to my IP address

This ip is the one that my wifi assigns, on the mobile I am connected to the same wifi as on the PC and also on the PC I am also connected by cable.

But I am not sure what is really happening, it seems to be a problem with localhost, because I had to define the address, my address

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants