How to achieve peer to peer transmission, when both source and destination are with dynamic IP and behind...





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







0















I have 2 separate household internet connections in two separate buildings. The connections use dynamic IP. Also all devices on both networks are behind routers.



I also have a server with fixed IP from GoDaddy.com (cPanel shared Linux hosting)



Now, I need to transfer files from a PC on my first network to another PC on my second network. Since they are both behind their routers, this cannot work with the destination's private IP.



I also cannot send the entire file though the server for bandwidth reasons. So, I need to achieve some kind of peer to peer transfer directly between my PCs.



My question is, given the availability of the server, how exactly I can get this done? Can the destination PC save some information in the server, that the source can use in order to establish a direct connection with the destination PC? If so, what information needs to be saved in the server?










share|improve this question























  • Yes. You also could just use a dyndns service.

    – Seth
    Feb 5 at 10:49











  • Is there a way, I could use my own server as mentioned in the question to solve this problem?

    – Sureshkumar K V
    Feb 5 at 12:12











  • There are countless options. What you need to do is exchange the public IP so essentially you could any number of things because you haven't really specified anything. You could send a mail, you could run a script to let it post to a website, you could use SSH, you could let your server run an IRC demon and connect to that from your clients, you could run your own tracker and just use a torrent, you could setup some insane VPN solution.

    – Seth
    Feb 5 at 13:04











  • I will have to save the port and public IP of the clients, as seen by the server. I got this from text about TCP hole punching. But I also read that they are not reliable. So what can I do to make guaranteed p2p connection, especially given that one of the clients could be on a 4G phone?

    – Sureshkumar K V
    Feb 6 at 4:15











  • Phones are often behind a CGN which are a bit more complex to overcome. Every method I mentioned could be used to exchange the IPs. Whenever you determine the public IP on the client or server is up to you. You could also setup a port forward for a defined protocol one the non phone site which likely would make it easier to connect. Again, some of the methods mentions would allow you to use that.

    – Seth
    Feb 6 at 6:53


















0















I have 2 separate household internet connections in two separate buildings. The connections use dynamic IP. Also all devices on both networks are behind routers.



I also have a server with fixed IP from GoDaddy.com (cPanel shared Linux hosting)



Now, I need to transfer files from a PC on my first network to another PC on my second network. Since they are both behind their routers, this cannot work with the destination's private IP.



I also cannot send the entire file though the server for bandwidth reasons. So, I need to achieve some kind of peer to peer transfer directly between my PCs.



My question is, given the availability of the server, how exactly I can get this done? Can the destination PC save some information in the server, that the source can use in order to establish a direct connection with the destination PC? If so, what information needs to be saved in the server?










share|improve this question























  • Yes. You also could just use a dyndns service.

    – Seth
    Feb 5 at 10:49











  • Is there a way, I could use my own server as mentioned in the question to solve this problem?

    – Sureshkumar K V
    Feb 5 at 12:12











  • There are countless options. What you need to do is exchange the public IP so essentially you could any number of things because you haven't really specified anything. You could send a mail, you could run a script to let it post to a website, you could use SSH, you could let your server run an IRC demon and connect to that from your clients, you could run your own tracker and just use a torrent, you could setup some insane VPN solution.

    – Seth
    Feb 5 at 13:04











  • I will have to save the port and public IP of the clients, as seen by the server. I got this from text about TCP hole punching. But I also read that they are not reliable. So what can I do to make guaranteed p2p connection, especially given that one of the clients could be on a 4G phone?

    – Sureshkumar K V
    Feb 6 at 4:15











  • Phones are often behind a CGN which are a bit more complex to overcome. Every method I mentioned could be used to exchange the IPs. Whenever you determine the public IP on the client or server is up to you. You could also setup a port forward for a defined protocol one the non phone site which likely would make it easier to connect. Again, some of the methods mentions would allow you to use that.

    – Seth
    Feb 6 at 6:53














0












0








0








I have 2 separate household internet connections in two separate buildings. The connections use dynamic IP. Also all devices on both networks are behind routers.



I also have a server with fixed IP from GoDaddy.com (cPanel shared Linux hosting)



Now, I need to transfer files from a PC on my first network to another PC on my second network. Since they are both behind their routers, this cannot work with the destination's private IP.



I also cannot send the entire file though the server for bandwidth reasons. So, I need to achieve some kind of peer to peer transfer directly between my PCs.



My question is, given the availability of the server, how exactly I can get this done? Can the destination PC save some information in the server, that the source can use in order to establish a direct connection with the destination PC? If so, what information needs to be saved in the server?










share|improve this question














I have 2 separate household internet connections in two separate buildings. The connections use dynamic IP. Also all devices on both networks are behind routers.



I also have a server with fixed IP from GoDaddy.com (cPanel shared Linux hosting)



Now, I need to transfer files from a PC on my first network to another PC on my second network. Since they are both behind their routers, this cannot work with the destination's private IP.



I also cannot send the entire file though the server for bandwidth reasons. So, I need to achieve some kind of peer to peer transfer directly between my PCs.



My question is, given the availability of the server, how exactly I can get this done? Can the destination PC save some information in the server, that the source can use in order to establish a direct connection with the destination PC? If so, what information needs to be saved in the server?







networking routing peer-to-peer






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Feb 5 at 9:40









Sureshkumar K VSureshkumar K V

1




1













  • Yes. You also could just use a dyndns service.

    – Seth
    Feb 5 at 10:49











  • Is there a way, I could use my own server as mentioned in the question to solve this problem?

    – Sureshkumar K V
    Feb 5 at 12:12











  • There are countless options. What you need to do is exchange the public IP so essentially you could any number of things because you haven't really specified anything. You could send a mail, you could run a script to let it post to a website, you could use SSH, you could let your server run an IRC demon and connect to that from your clients, you could run your own tracker and just use a torrent, you could setup some insane VPN solution.

    – Seth
    Feb 5 at 13:04











  • I will have to save the port and public IP of the clients, as seen by the server. I got this from text about TCP hole punching. But I also read that they are not reliable. So what can I do to make guaranteed p2p connection, especially given that one of the clients could be on a 4G phone?

    – Sureshkumar K V
    Feb 6 at 4:15











  • Phones are often behind a CGN which are a bit more complex to overcome. Every method I mentioned could be used to exchange the IPs. Whenever you determine the public IP on the client or server is up to you. You could also setup a port forward for a defined protocol one the non phone site which likely would make it easier to connect. Again, some of the methods mentions would allow you to use that.

    – Seth
    Feb 6 at 6:53



















  • Yes. You also could just use a dyndns service.

    – Seth
    Feb 5 at 10:49











  • Is there a way, I could use my own server as mentioned in the question to solve this problem?

    – Sureshkumar K V
    Feb 5 at 12:12











  • There are countless options. What you need to do is exchange the public IP so essentially you could any number of things because you haven't really specified anything. You could send a mail, you could run a script to let it post to a website, you could use SSH, you could let your server run an IRC demon and connect to that from your clients, you could run your own tracker and just use a torrent, you could setup some insane VPN solution.

    – Seth
    Feb 5 at 13:04











  • I will have to save the port and public IP of the clients, as seen by the server. I got this from text about TCP hole punching. But I also read that they are not reliable. So what can I do to make guaranteed p2p connection, especially given that one of the clients could be on a 4G phone?

    – Sureshkumar K V
    Feb 6 at 4:15











  • Phones are often behind a CGN which are a bit more complex to overcome. Every method I mentioned could be used to exchange the IPs. Whenever you determine the public IP on the client or server is up to you. You could also setup a port forward for a defined protocol one the non phone site which likely would make it easier to connect. Again, some of the methods mentions would allow you to use that.

    – Seth
    Feb 6 at 6:53

















Yes. You also could just use a dyndns service.

– Seth
Feb 5 at 10:49





Yes. You also could just use a dyndns service.

– Seth
Feb 5 at 10:49













Is there a way, I could use my own server as mentioned in the question to solve this problem?

– Sureshkumar K V
Feb 5 at 12:12





Is there a way, I could use my own server as mentioned in the question to solve this problem?

– Sureshkumar K V
Feb 5 at 12:12













There are countless options. What you need to do is exchange the public IP so essentially you could any number of things because you haven't really specified anything. You could send a mail, you could run a script to let it post to a website, you could use SSH, you could let your server run an IRC demon and connect to that from your clients, you could run your own tracker and just use a torrent, you could setup some insane VPN solution.

– Seth
Feb 5 at 13:04





There are countless options. What you need to do is exchange the public IP so essentially you could any number of things because you haven't really specified anything. You could send a mail, you could run a script to let it post to a website, you could use SSH, you could let your server run an IRC demon and connect to that from your clients, you could run your own tracker and just use a torrent, you could setup some insane VPN solution.

– Seth
Feb 5 at 13:04













I will have to save the port and public IP of the clients, as seen by the server. I got this from text about TCP hole punching. But I also read that they are not reliable. So what can I do to make guaranteed p2p connection, especially given that one of the clients could be on a 4G phone?

– Sureshkumar K V
Feb 6 at 4:15





I will have to save the port and public IP of the clients, as seen by the server. I got this from text about TCP hole punching. But I also read that they are not reliable. So what can I do to make guaranteed p2p connection, especially given that one of the clients could be on a 4G phone?

– Sureshkumar K V
Feb 6 at 4:15













Phones are often behind a CGN which are a bit more complex to overcome. Every method I mentioned could be used to exchange the IPs. Whenever you determine the public IP on the client or server is up to you. You could also setup a port forward for a defined protocol one the non phone site which likely would make it easier to connect. Again, some of the methods mentions would allow you to use that.

– Seth
Feb 6 at 6:53





Phones are often behind a CGN which are a bit more complex to overcome. Every method I mentioned could be used to exchange the IPs. Whenever you determine the public IP on the client or server is up to you. You could also setup a port forward for a defined protocol one the non phone site which likely would make it easier to connect. Again, some of the methods mentions would allow you to use that.

– Seth
Feb 6 at 6:53










0






active

oldest

votes












Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1402185%2fhow-to-achieve-peer-to-peer-transmission-when-both-source-and-destination-are-w%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Super User!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1402185%2fhow-to-achieve-peer-to-peer-transmission-when-both-source-and-destination-are-w%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Сан-Квентин

Алькесар

Josef Freinademetz