Giter Club home page Giter Club logo

Comments (6)

sabrogden avatar sabrogden commented on May 28, 2024

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.

epa avatar epa commented on May 28, 2024

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.

sabrogden avatar sabrogden commented on May 28, 2024

Currently, they need to be the same port for both send and receive.

from ditto.

epa avatar epa commented on May 28, 2024

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.

sabrogden avatar sabrogden commented on May 28, 2024

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

image

Also I exposed the port number in config, - options - general - advanced, "Network Send Receive Port"

image

from ditto.

epa avatar epa commented on May 28, 2024

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)

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.