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

Hotspot as WiFi conncetion #46

Closed
mubashir-rehman opened this issue Jan 28, 2021 · 4 comments
Closed

Hotspot as WiFi conncetion #46

mubashir-rehman opened this issue Jan 28, 2021 · 4 comments
Labels
feature request New feature or request

Comments

@mubashir-rehman
Copy link

I just installed the app and it says "Please verify that you are connected to a WiFi network". However, I have already enabled hotspot. It should use device hotspot instead of asking for another WiFi connection.

@mubashir-rehman mubashir-rehman added the feature request New feature or request label Jan 28, 2021
@fm-sys
Copy link
Owner

fm-sys commented Jan 28, 2021

I didn't even know that using a mobile hotspot is possible with https://snapdrop.net/ at all. There's an API to check if tethering is enabled. If so, Snapdrop should pass the WiFi check, with additional information that the device uses mobile data (for set up the connection) and might not work on every device...

https://stackoverflow.com/a/20432036/13513639

@crok
Copy link

crok commented Jan 29, 2021

I didn't even know that using a mobile hotspot is possible with https://snapdrop.net/ at all. There's an API to check if tethering is enabled. If so, Snapdrop should pass the WiFi check, with additional information that the device uses mobile data (for set up the connection) and might not work on every device...

I think you didn't get the situation and the problem.
Imagine two phones with no router or AP involved, like you are in a picnic in the forest with your loved ones and you took some pictures you want to share with the others.
Device "A" activates WIFI hotspot, device "B" connects to this hotspot - so both are having a kind of WLAN (and actual IP) connectivity to the other.. no Internet involved, just the hotspot (phone "A" has no mobile network access, but it doesn't even matter).
So the two phones' owners are trying to share files via Snapdrop.. but the one that actually the hotspot AP reports that there's no WLAN connection at all so Snapdrop doesn't even start (although the other one says everything is fine since it has a WLAN connection to an AP, does not matter whether it is a hotspot or an infrastucture AP connection).
So, this is the problem.. in this scenario (tested) Snapdrop does not pass the Wifi check and you can't use the Snapdrop app like a "WIFI direct share" app even though technically the networking between the phones is actually totally available (and for example a simple HTTP, WebDAV or FTP, SCP, SFTP, etc.. service could easily run between them). I guess this is what @mubashir-rehman is trying to say. Edit: and I would really love to see this feature in Snapdrop, too!

@mubashir-rehman
Copy link
Author

@crok thanks a lot for explaining it well. I usually use https://github.com/trebleshot/android but it doesn't support Apple devices and has slow development because of many reasons. Snap drop is versatile, but the only problem is dependence on snap drop server for validating devices.

@fm-sys
Copy link
Owner

fm-sys commented Apr 11, 2021

See #48 (comment). There I posted a screenshot, how the first solution will look like. Feel free to suggest better ideas...

@fm-sys fm-sys closed this as completed in cb510a8 Apr 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants