{"thread":{"id":"8575","subject":"Port forwarding","startedAt":"2007-06-12T15:26:19Z","lastAt":"2007-06-12T18:12:14Z","messageCount":3,"participants":["Claudio Scordino","Linus Torvalds","Alex Riesen"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"44852","messageId":"466EBB1B.9060405@gmail.com","threadId":"8575","inReplyTo":null,"subject":"Port forwarding","fromName":"Claudio Scordino","fromEmail":"cloud.of.andor@gmail.com","sentAt":"2007-06-12T15:26:19Z","receivedAt":"2007-06-12T15:26:19Z","isPatch":false,"sender":{"key":"cloud.of.andor@gmail.com","avatar":null},"body":"Hi all,\n\n    how can I specify the port in git-clone when cloning from a server running \ngit-daemon ?\n\nThe issue is the following.\n\nI need to set port forwarding from a public server to a private server.\nThe public server, however, already hosts a git-daemon on port 9418.\nSo, I have to use a different port for the forwarding.\n\nMy idea is to let the public server listen on a different port (e.g. 9419) and \nmake it redirect all the incoming connections to the port 9418 of the private \nserver.\n\nHowever, I don't know how make git-clone go on a port different than the default \n(9418).\n\nMany thanks in advance,\n\n          Claudio\n"},{"id":"44856","messageId":"alpine.LFD.0.98.0706121103230.14121@woody.linux-foundation.org","threadId":"8575","inReplyTo":"466EBB1B.9060405@gmail.com","subject":"Re: Port forwarding","fromName":"Linus Torvalds","fromEmail":"torvalds@linux-foundation.org","sentAt":"2007-06-12T18:08:10Z","receivedAt":"2007-06-12T18:08:10Z","isPatch":false,"sender":{"key":"torvalds@linux-foundation.org","avatar":"https://avatars.githubusercontent.com/u/1024025?v=4"},"body":"\n\nOn Tue, 12 Jun 2007, Claudio Scordino wrote:\n> \n>    how can I specify the port in git-clone when cloning from a server running\n> git-daemon ?\n\nJust doing\n\n\tgit clone git://hostname:port/repo/path/name\n\nshould be fine.\n\n> I need to set port forwarding from a public server to a private server.\n> The public server, however, already hosts a git-daemon on port 9418.\n> So, I have to use a different port for the forwarding.\n> \n> My idea is to let the public server listen on a different port (e.g. 9419) and\n> make it redirect all the incoming connections to the port 9418 of the private\n> server.\n\nI would argue that it probably makes more sense to make the _private_ \nserver listen to another port (fewer people who need to use the :<port> \nsyntax). But hey, that's a matter of taste.\n\n> However, I don't know how make git-clone go on a port different than the\n> default (9418).\n\nSee above. The obvious thing should \"just work\".\n\n\t\tLinus\n"},{"id":"44857","messageId":"20070612181213.GA2459@steel.home","threadId":"8575","inReplyTo":"466EBB1B.9060405@gmail.com","subject":"Re: Port forwarding","fromName":"Alex Riesen","fromEmail":"raa.lkml@gmail.com","sentAt":"2007-06-12T18:12:14Z","receivedAt":"2007-06-12T18:12:14Z","isPatch":false,"sender":{"key":"raa.lkml@gmail.com","avatar":"https://avatars.githubusercontent.com/u/324101?v=4"},"body":"Claudio Scordino, Tue, Jun 12, 2007 17:26:19 +0200:\n> \n> However, I don't know how make git-clone go on a port different than the \n> default (9418).\n> \n\ngit clone git://server:port/~cloud/project/\n"}]}