-
Notifications
You must be signed in to change notification settings - Fork 16
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
Building holepunch client #10
Comments
Hi Amit, sorry you've had trouble. BuildingFirst off, I want to confirm that you really want to build it? There's ready-made releases for Windows, Linux (both amd64 and ARM for Raspberry Pi etc.)? If your platform (Mac?) is missing, I can add it. If you really want to build it (maybe you want to hack on the code): If you've installed the Turbo Bob util, then all you need to do is run If you prefer not to install Turbo Bob, then you need to have basic understanding of building Go-based projects. Once you've installed Go build tools ( $ docker run --rm -it golang:1.13.5-stretch
$ mkdir /project && cd /project
$ git clone https://github.com/function61/holepunch-client.git
$ cd holepunch-client/
$ cd cmd/holepunch/
$ go build SSH port other than 22You should just be able to set the port after the colon, see example config file. Sorry, the example was missing the port (I fixed it just now) which was super confusing - my bad. :( Thanks for bringing this to my attention! |
Hi joonas-fi,
Like you, I also got inspired by the work of codref (https://gist.github.com/codref/473351a24a3ef90162cf10857fac0ff3) and started tinkering around the code. But I wanted to be in a position to open multiple client connections and opening and closing them at will. I saw yours and wanted to use it. I will go over the "main.go" code really well and would try to understand every line, particularly the part which enables the multiple connections possible. If you get some time and add some documentation in the code then that would be great addition for people like me who gets inspired and try to use the awesome work like yours and 'coderefs'. Would like to stay in touch with you. |
Glad that took care of your problems :) You're right, the code documentation could be improved on a bit. I added some comments here: 5681ff4 (I also split the code in a couple more files, but I didn't change functionality) I didn't go crazy with my comments (too little time) - I only added comments to the most hairiest places. This comment explains, why multiple connections work: holepunch-client/cmd/holepunch/client.go Line 117 in 5681ff4
Hope this helps, best luck :) |
Thanks much! |
Hi joonas-fi,
I am new to this and I am trying to build and use your code by following the README. But I am falling short. Could you please update the README on how I can build holepunch client and execute it?
Also, if the remote server has the sshd running on a port other than 22, then how can I introduce custom port in the json file?
So far I have done this:
But I am unable to make this work by following the README. I am getting errors.
Thanks,
-amit
The text was updated successfully, but these errors were encountered: