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

Comunication between devices #12

Closed
cristianpedroso opened this issue Dec 12, 2019 · 2 comments
Closed

Comunication between devices #12

cristianpedroso opened this issue Dec 12, 2019 · 2 comments

Comments

@cristianpedroso
Copy link

Hi, i'm trying to connect from another device to the server using the wifi direct IP, but when i try to connect the output is:

client error failed to connect to /192.168.49.1 (port 8007) from /120.0.0.1 (port 36497): connect failed: EINVAL (Invalid argument).

To get the server address ip i'm using react-native-wifi-p2p.

When i use the ip to connect from the same device of the server it work.

@Rapsssito
Copy link
Owner

Rapsssito commented Dec 12, 2019

@cristianpedroso, it looks like you are trying to connect to LAN IP from an invalid IP (120.0.0.1).

@cristianpedroso
Copy link
Author

Sorry... the problem is that i'm using the localAddress: "127.0.0.1", in client server, my bad.

Thx for the library.

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