Giter Club home page Giter Club logo

Comments (8)

schlagmichdoch avatar schlagmichdoch commented on May 21, 2024

I have rewritten a substantial part of the logic. Please test again!

from pairdrop.

gitwittidbit avatar gitwittidbit commented on May 21, 2024

Oh, thanks. I had snapdrop working long ago and I never realized that the circles stopped when another peer showed up. And now I thought something was wrong when this happened. Great to see that this is not the case. But the file transfer (or even mere messaging) doesn't work anyway.

Yes, the peer shows up and I get to pick and choose a file but it doesn't transfer over. The same applies to sending a message. Nothing goes through.

I am running PairDrop in (rootless) docker on Debian 11 in a VM on Proxmox. The peers are mobile phones (iOS and Android).

The server was set up using docker-compose. But TBH, I did tinker a bit with the compose file and removed the nginx service because the VM is already running behind a HAProxy. So I am connecting directly to port 3000.

There was an issue (because of the rootless docker) with write permissions but I chowned the directory to the user inside docker and now PairDrop is able to write to it and it does install node modules there.

I will update to the new version of PairDrop, test again and report back.

Thanks!

from pairdrop.

schlagmichdoch avatar schlagmichdoch commented on May 21, 2024

I often thought Snapdrop has crashed because the circles have stopped, but that was because they didn't start again when a peer left again. Once stopped they would stay stopped forever.
With PairDrop circles restart when the last peer lefts and stop when any peer joines. They also stop, when the connection to the server is lost / the device is offline.

It should not matter how you run PairDrop as it is only a tool for discovering and signaling. Once the connection is successfully up (which is the case the devices are shown to each other) the connection is going peer to peer with webrtc. Once connected you can even shut down the PairDrop docker and the connection is still up.

Weird, that it does not work for you. Do you get any error messages on the javascript console?
Have you tried opening PairDrop on the same device on two tabs? Does that work?

from pairdrop.

gitwittidbit avatar gitwittidbit commented on May 21, 2024

Strange. I don't think I already upgraded to the newest version but somehow - without any further changes that I am aware of - it started working. Now I can send files and messages through between desktop and phones etc.

Bit what I am now struggling with is finding paired devices that are not on the same network: So I have to devices see each other on the same network and I pair them (by clicking on the pair symbol on both of them, entering the number one presents to me in the dialogue on the other and get a confirmation that they are now paired). But when I then move one to another network (e.g. on the phone disable wifi), they stop seeing each other. Is there another step involved to make them find each other across networks (or did I misunderstand what this does)?

Thanks!

from pairdrop.

schlagmichdoch avatar schlagmichdoch commented on May 21, 2024

Do you still use your own dockerized version of PairDrop or do you use pairdrop.net?
You did everything correctly. Are you sure you can still reach your PairDrop server after you switched off wifi?
For example, If you use a local IP address to connect to your PairDrop instance and then switch off WiFi, obviously it will stop working.

I suggest you try to make it work with pairdrop.net first and only if that works you try out your own version.

from pairdrop.

gitwittidbit avatar gitwittidbit commented on May 21, 2024

yes, this is still the dockerized version in my home lab that originally was acting up - but that now is performing beautifully as long as both clients are on the same network.

And yes, I can reach the PairDrop server also from outside my home network (because I have exposed it on a subdomain).

I tried on paridrop.net, both devices could see each other on the same net, I paired them and moved one off my home net. Both devices are showing on the bottom of the browser windows that I can be discovered on the same network and by paired devices. But the paired device does not show up.

So my dockerized version might be working fine and I just don't understand how to use it correctly...

from pairdrop.

schlagmichdoch avatar schlagmichdoch commented on May 21, 2024

What browsers and devices are you using? Does the javascript console show any errors?
Devices do not have to be on the same network to be paired, devices always need internet connection for discovery though.

If your javascript console shows the following message, your browser does not support persistent paired devices.

This browser does not support IndexedDB. Paired devices will be gone after the browser is closed.

You are however still able to pair devices temporarily: Simply pair devices again after moving one off your home device.

If PairDrop says "You can be discovered by everyone on this network and by paired devices" the above should not be the issue. Please proveide some screenshots for better understanding.

from pairdrop.

schlagmichdoch avatar schlagmichdoch commented on May 21, 2024

I‘ll close this for now as the original issue is resolved. If you have any other issue with pairing devices it would b great, if you could create a new issue with more information.

from pairdrop.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.