Comments (6)
The port can be configured in the registry, A restart of Ditto is required after changing this in the registry.
[HKEY_CURRENT_USER\SOFTWARE\Ditto]
"SendRecvPort"=dword:00023443
from ditto.
Thanks, so can I use that to run Ditto on one PC, with an ssh tunnel to a second PC, also running Ditto? Do I need to forward ports in both directions? And if so can I set a different port number for send and for receive?
from ditto.
Currently, they need to be the same port for both send and receive.
from ditto.
Thanks -- so could I make this feature request to allow specifying port number on a per-host basis, by entering IP address and port number together in the configuration dialogue box? That might be enough to allow use over an ssh tunnel.
from ditto.
https://ditto-cp.sourceforge.io/beta/
When entering the the ip/hostname the port can now be defined after that, ex) 127.0.0.1:5000
Also I exposed the port number in config, - options - general - advanced, "Network Send Receive Port"
from ditto.
Thanks, I have set this up as follows: install the beta version on both hosts A and B. Log in to host B and make an ssh connection to A using the -R option to tunnel a remote port to the local machine: -R 23444:127.0.0.1:23443. Now anything sent to port 23444 on A reaches 23443 on B. Then on host A add 127.0.0.1:23444 as a friend to send copies to. On host B add 127.0.0.1 to the 'be put on the clipboard' list. Now, anything copied on host A gets to the clipboard on B.
To get the reverse direction, add -L 23444:127.0.0.1:23443 and on host B add 127.0.0.1:23444 as a friend to send to. Similarly on host A add 127.0.0.1 as 'be put on the clipboard'.
Note that it doesn't always work to put 'localhost' instead of 127.0.0.1. I tried adding 'localhost' as a 'be put on the clipboard' host but it didn't work, while 127.0.0.1 does work. So to save headscratching better to use the IP address only.
If you think the ssh tunnel use case is common enough to be worth supporting, you might add better support for it in the configuration. So there could be a checkbox for 'Put on the clipboard if received from localhost' (perhaps even the default) and when adding friends you might have two choices, either "use this local port" or a specified host name (with optional port number).
Thanks again for your work on this feature.
from ditto.
Related Issues (20)
- Feature Request : Allow TAB as Multi-Paste Clip Separator
- Feature request : suggested On Paste Scripts : Paste MAC address to various common formats HOT 7
- Feature request : suggested On Paste Scripts : Paste as simulated keypressed to focused window HOT 1
- Cannot search immediately after activating ditto window HOT 1
- General Enquiries about windows-history and applications like ditto
- Feature Request: Favorites list HOT 1
- [Feature request] Show date and time of each entry
- [Feature request] Better visualising shrinked and not shrinked entries
- [Feature request] Search: "Go to the object" context menu action
- Paste text without empty lines HOT 2
- [Feature Request] Enhance group display HOT 2
- Autostart for all users on RDS HOT 2
- Snippets functionality absent HOT 2
- [IMPROVEMENT]: it's not allowed to bind "ALT" key as a shortcut to paste something from the buffer HOT 1
- Crashing firefox HOT 9
- [Feature request] Add a toggle on settings for case sensitivity, including RegEx searches HOT 1
- [BUG]: no can paste to msys2 terminal HOT 2
- Suggestions
- [request] Paste Timestamp improvements HOT 1
- The size of cf dib is Ten to twenty times the size of the image HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ditto.