Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Java (http://www.go4expert.com/forums/java/)
-   -   p2p accross the internet with java (http://www.go4expert.com/forums/p2p-accross-internet-java-t2265/)

waisty 16Dec2006 19:12

p2p accross the internet with java
 
Hi. I'm new to this forum, so, please forgive me if I've broken any rules. I've written a few p2p applications in java for clients that run on the same local area network. But I would like to know how to make a p2p socket connection between two computers across the internet. Any help will be greatly appreciated.

DaWei 16Dec2006 21:26

Re: p2p accross the internet with java
 
How did you do it for the LAN? In other words, what do you find to be the stumbling block?

waisty 17Dec2006 00:44

Re: p2p accross the internet with java
 
For a Lan, the computers can ping each other, so, it is a trivial matter to create a socket connection to any listening IP on the LAN. But this would not work across the internet, unless of course one of the systems has a live IP. I want both systems to be able to communicate directly without having to rout all the information through a server. Thanks for your help

DaWei 17Dec2006 01:26

Re: p2p accross the internet with java
 
If you're connected to the internet, you have a live IP. It might not be a static IP. If it isn't, you have to work around that by getting one, or purchasing a service that deals with that, or have some side means of communications that makes your current, dynamic one known.

waisty 18Dec2006 02:24

Re: p2p accross the internet with java
 
If I connect to a server with a static live IP, would that server be able to view my dynamic live IP? If not, Could you please tell me how I could make a dynamic IP known? Thanks for your help


All times are GMT +5.5. The time now is 21:18.