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

Link never opens on Android or Ipad #283

Closed
MurilloDaniel opened this issue Sep 12, 2024 · 31 comments
Closed

Link never opens on Android or Ipad #283

MurilloDaniel opened this issue Sep 12, 2024 · 31 comments

Comments

@MurilloDaniel
Copy link

MurilloDaniel commented Sep 12, 2024

Once I open Weylus and type the link on my Android phone and Ipad the page never opens, on my Ipad it simply says that it could not connect to the server while on Android it says Address unreacheable.

ps.: I'm on Linux, Nobara

@Diordany
Copy link
Contributor

Can you post the output from Weylus after your attempts to connect?

For example (my case):

INFO Webserver listening at 127.0.0.1:1701...
INFO Client connected. address=127.0.0.1:53571
INFO WS-Client authenticated! address=127.0.0.1:53571
INFO using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
INFO profile Constrained Baseline, level 6.2, 4:2:0, 8-bit
INFO 264 - core 164 r3108 31e19f9 - H.264/MPEG-4 AVC codec - Copyleft 2003-2023 - http://www.videolan.org/x264.html - options: cabac=0 ref=1 deblock=0:0:0 analyse=0:0 me=dia subme=0 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=8 lookahead_threads=8 sliced_threads=1 slices=8 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=12 keyint_min=1 scenecut=0 intra_refresh=0 rc=crf mbtree=0 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=0
INFO Video: 3602x1156@libx264 pix_fmt: yuv420p

And what link you're using to connect.

@MurilloDaniel
Copy link
Author

Can you post the output from Weylus after your attempts to connect?

For example (my case):

INFO Webserver listening at 127.0.0.1:1701...
INFO Client connected. address=127.0.0.1:53571
INFO WS-Client authenticated! address=127.0.0.1:53571
INFO using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
INFO profile Constrained Baseline, level 6.2, 4:2:0, 8-bit
INFO 264 - core 164 r3108 31e19f9 - H.264/MPEG-4 AVC codec - Copyleft 2003-2023 - http://www.videolan.org/x264.html - options: cabac=0 ref=1 deblock=0:0:0 analyse=0:0 me=dia subme=0 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=8 lookahead_threads=8 sliced_threads=1 slices=8 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=12 keyint_min=1 scenecut=0 intra_refresh=0 rc=crf mbtree=0 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=0
INFO Video: 3602x1156@libx264 pix_fmt: yuv420p

And what link you're using to connect.

That's the thing, there is none, Weylus give no output (It just say this: "INFO Webserver listening at 0.0.0.0:1701..."). The link I'm using is the one that shows in the "Connect your tablet to" box

@Diordany
Copy link
Contributor

The link I'm using is the one that shows in the "Connect your tablet to" box

What link does the box show?

@MurilloDaniel
Copy link
Author

The link I'm using is the one that shows in the "Connect your tablet to" box

What link does the box show?

I'm not telling you that man. It's fine if you can't help but I'm not giving you the link that directly shows my screen.

@electronstudio
Copy link

electronstudio commented Sep 13, 2024

Unless your machine has a public IP address and no firewall - a configuration that I've not seen the days of Trumpet Winsock - that link will not allow anyone to connect to your machine over the internet. If you are worried, enter something in the "access code" box.

@MurilloDaniel
Copy link
Author

MurilloDaniel commented Sep 13, 2024

Unless your machine has a public IP address and no firewall - a configuration that I've not seen the days of Trumpet Winsock - that link will not allow anyone to connect to your machine over the internet. If you are worried, enter something in the "access code" box.

ok, why did you closed the issue before I could give the link then?

deleted

@Diordany
Copy link
Contributor

ps.: It's http://192.168.0.114:1701 btw

Probably a valid LAN ip. Can you put 192.168.0.114 into the Bind Address field instead of 0.0.0.0, restart Weylus and try to connect again from your tablet?

@electronstudio
Copy link

ok, why did you closed the issue before I could give the link then?

Because there's no point have 2 issues discussing the same thing.

What happens if you open the link on the same machine you are running Weylus?

@Diordany
Copy link
Contributor

ok, why did you closed the issue before I could give the link then?

I think it's probably not even an issue with Weylus, let alone a WeylusCOmmunityEdition issue, which @electronstudio already pointed out in the other issue.

@MurilloDaniel
Copy link
Author

MurilloDaniel commented Sep 13, 2024

ok, why did you closed the issue before I could give the link then?

Because there's no point have 2 issues discussing the same thing.

What happens if you open the link on the same machine you are running Weylus?

I tried that since I read in another issue and it worked, opening the link showed my screen but neither my ipad or android did it.

Also Diordany, just tried what you asked and I got same error

@Diordany
Copy link
Contributor

Also Diordany, just tried what you asked and I got same error

Okay, thanks for trying. Can you also try @electronstudio's suggestion:

What happens if you open the link on the same machine you are running Weylus?

@Diordany
Copy link
Contributor

Diordany commented Sep 13, 2024

What happens if you open the link on the same machine you are running Weylus?

And on the same machine also try http://127.0.0.1:1701/.

Edit: shouldn't have worked anyway, since you used 192.168.0.114 as the bind address, my bad.. Might work if you enter 0.0.0.0.

@electronstudio
Copy link

Definitely network issue then. Could be a firewall. Post output of command sudo iptables -L

@MurilloDaniel
Copy link
Author

Also Diordany, just tried what you asked and I got same error

Okay, thanks for trying. Can you also try @electronstudio's suggestion:

What happens if you open the link on the same machine you are running Weylus?

I mentioned in my last message, but basically the screen sharing worked if I open the page on the machine running Weylus. If the issue is a network would using a cable fix it? I dunno it if would work since I'm trying on my Ipad though

@MurilloDaniel
Copy link
Author

What happens if you open the link on the same machine you are running Weylus?

And on the same machine also try http://127.0.0.1:1701/.

Didn't worked

@MurilloDaniel
Copy link
Author

Definitely network issue then. Could be a firewall. Post output of command sudo iptables -L

Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

@electronstudio
Copy link

There's no firewall on your machine causing it then. There could be one on your wifi router blocking the connection. You would need to check the router config.

Is your ipad on the same wifi network as your computer? What is IP address of ipad?

Yes using a cable might fix it.

@MurilloDaniel
Copy link
Author

There's no firewall on your machine causing it then. There could be one on your wifi router blocking the connection. You would need to check the router config.

Is your ipad on the same wifi network as your computer? What is IP address of ipad?

Yes using a cable might fix it.

"Is your ipad on the same wifi network as your computer?" - Yes, no idea the Ipad IP adress though

What are the steps to use the cable? I plug in my pc and the Ipad but nothing changes.

@electronstudio
Copy link

For android you can set up networking over a USB cable with the adb command - see the end of the Weylus README for instructions.

For iPad I don't know. You may have to get a USB->ethernet adapter.

I still think the most likely culprit is your wireless router has some setting that is blocking hosts from communicating with one another. Public wifi networks are usually configured like this.

You can find the IP address of the iPad on the wifi settings screen, but that's only the first step to investigating network connectivity issues.

@MurilloDaniel
Copy link
Author

MurilloDaniel commented Sep 13, 2024

For android you can set up networking over a USB cable with the adb command - see the end of the Weylus README for instructions.

For iPad I don't know. You may have to get a USB->ethernet adapter.

I still think the most likely culprit is your wireless router has some setting that is blocking hosts from communicating with one another. Public wifi networks are usually configured like this.

You can find the IP address of the iPad on the wifi settings screen, but that's only the first step to investigating network connectivity issues.

deleted

@Diordany
Copy link
Contributor

For android you can set up networking over a USB cable with the adb command - see the end of the Weylus README for instructions.

  • Enable USB debugging on your Android device.
  • Set your bind address to either 127.0.0.1 or 0.0.0.0 for Weylus.
  • Connect your Android tablet through USB.
  • run adb reverse tcp:1701 tcp:1701 and adb reverse tcp:9001 tcp:9001.
  • Accept on your Android device.
  • Connect to http://127.0.0.1:1701 on your browser on the Android device.

That should be the gist of it.

@electronstudio
Copy link

image

@MurilloDaniel
Copy link
Author

image

found it thanks, it's: 192.168.0.132

@Diordany
Copy link
Contributor

found it thanks, it's: 192.168.0.132

Is the subnet mask also 255.255.255.0 on your iPad?

@MurilloDaniel
Copy link
Author

found it thanks, it's: 192.168.0.132

Is the subnet mask also 255.255.255.0 on your iPad?

yes

@Diordany
Copy link
Contributor

yes

Then at least we can confirm that they're on the same network.

@Diordany
Copy link
Contributor

Maybe try ping -c 1 192.168.0.132 on your PC? And post the output.

@MurilloDaniel
Copy link
Author

MurilloDaniel commented Sep 13, 2024

Maybe try ping -c 1 192.168.0.132 on your PC? And post the output.

deleted

@electronstudio
Copy link

Ping response doesn’t work on iOS unfortunately so you need to use other tools to diagnose. I would check the router configuration and then if there’s no setting there you can change perhaps find a subreddit that specialises in home network configuration and ask them to help.

@Diordany
Copy link
Contributor

And I'd suggest you also close this issue, since it turned out not to be an issue with Weylus (you were able to connect from a browser on the same machine).

@H-M-H
Copy link
Owner

H-M-H commented Sep 25, 2024

Closing as this is not an issue with Weylus itself. Thanks to everyone who's helped out!

@H-M-H H-M-H closed this as completed Sep 25, 2024
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

4 participants