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

Bug: transfers are incredibly slow #44

Open
nealhead opened this issue Feb 22, 2023 · 12 comments · May be fixed by #267
Open

Bug: transfers are incredibly slow #44

nealhead opened this issue Feb 22, 2023 · 12 comments · May be fixed by #267
Labels
bug Something isn't working under development

Comments

@nealhead
Copy link

Attempting to transfer a file between clients is unimaginably slow

Steps to reproduce the behavior:

  1. Go to pairdrop.net
  2. Click on link in top right
  3. Pair with device
  4. Transfer file

Expected behavior
I expect the speed of the connection between the two devices

Desktop (please complete the following information):

  • OS: Windows 11
  • Browser Edge, Firefox
  • Version 110.0.1587.50,110

Self-Hosted
Both self-hosted and Pairdrop official site

Self-Hosted Setup
Proxy: Nginx
Deployment: Unraid

Additional context
Add any other context about the problem here.

@schlagmichdoch schlagmichdoch added the bug Something isn't working label Feb 23, 2023
@nealhead
Copy link
Author

nealhead commented Mar 1, 2023

I tested on two different browsers on the same PC and still experienced the slow speeds

@schlagmichdoch
Copy link
Owner

Is this still the case for you? Have you done some additional testing? Have you tried hosting your own instance?

@chadoe
Copy link

chadoe commented Apr 7, 2023

Same for me. Tried to send a 200MB video but it was indeed incredibly slow. Devices are on the same network. Any way I can tell if it's using a direct connection or if it's trying to use the public turn server?

@schlagmichdoch
Copy link
Owner

I have since added a new TURN server for pairdrop.net that should increase the transfer speed.
Could you try again @chadoe @nealhead ?

@cxzlw
Copy link

cxzlw commented May 25, 2023

I have since added a new TURN server for pairdrop.net that should increase the transfer speed. Could you try again @chadoe @nealhead ?

Sorry but the speed is still very slow (about 2M/s even 500k/s) although I am using my mobile's hotspot (wifi6 5ghz).

@schlagmichdoch
Copy link
Owner

Thanks for reporting! The slow speed is browser specific as the bottleneck is the webrtc implementation. I will play around with the code to try to increase the webrtc bandwidth and keep you updated.

@jeremyjohn
Copy link

Same here, pairdrop.net and self-hosted docker transfer from mobile to desktop and other devices getting capped at 300-400KB/s.

I tested on another app called sharedrop.io and got full speed of the device connection. I looked around at their code seems like something to do with the webrtc chunks setting https://github.com/szimek/sharedrop/blob/master/app/services/web-rtc.js

I prefer pairdrop ui/ux over others, hope the speed issue can be resolved.

@cxzlw
Copy link

cxzlw commented Sep 24, 2023

Same here, pairdrop.net and self-hosted docker transfer from mobile to desktop and other devices getting capped at 300-400KB/s.

I tested on another app called sharedrop.io and got full speed of the device connection. I looked around at their code seems like something to do with the webrtc chunks setting https://github.com/szimek/sharedrop/blob/master/app/services/web-rtc.js

I prefer pairdrop ui/ux over others, hope the speed issue can be resolved.

Yeah, and I am using LocalSend. You may want to have a try because of its ui.

:)

@cxzlw
Copy link

cxzlw commented Sep 24, 2023

Same here, pairdrop.net and self-hosted docker transfer from mobile to desktop and other devices getting capped at 300-400KB/s.

I tested on another app called sharedrop.io and got full speed of the device connection. I looked around at their code seems like something to do with the webrtc chunks setting https://github.com/szimek/sharedrop/blob/master/app/services/web-rtc.js

I prefer pairdrop ui/ux over others, hope the speed issue can be resolved.

Yeah, and I am using LocalSend. You may want to have a try because of its ui.

:)

And high speed

@schlagmichdoch schlagmichdoch linked a pull request Feb 9, 2024 that will close this issue
42 tasks
Repository owner deleted a comment from schlagmichdoch Feb 17, 2024
@schlagmichdoch
Copy link
Owner

The following comments were deleted by GitHub (via hubot) as part of mistakenly marking this account as spam on 17th February 2024. The correct thread order and the creation date is unclear. I decided to manually restore them anyway in order to complete the information this issue holds even though the restored information might be outdated:

Comment by @schlagmichdoch:

Does this only happen on paired devices?
Devices that are behind a NAT need a TURN server to establish the peer-to-peer connection. Apparantly the public turn server is quite slow.

Try this to bypass the need for a TURN server: https://github.com/schlagmichdoch/PairDrop/blob/master/docs/faq.md#transferring-many-files-with-paired-devices-takes-too-long

If you self-host you can also run your own stun and turn server which should increase the speed a lot if done right.
See this issue for more info: #32

@jmaximusix
Copy link

I have the same issue, regardless of using my selfhosted instance or the official pairdrop.net site. My wifi should be able to push Gigabit speed, yet a simple file transfer of 260MB took about 10 minutes, which is just painfully slow

@ksweidmann
Copy link

Hello. I'm tested it on local own server with devices connected via local network and i can says it have extremely slow transfer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working under development
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants