hi every one i can't connect from two peer with a socket... it doesnt work on a lan and doesnt work on internet... can you help me please.
I attach the code of server and client
The issue is that either your peers should be able to communicate via multicasting or the server should be set as a seed in the client peer. You can find some code examples explaining how to make two peers connect via a socket on a single PC at www.practicaljxta.com. See the Lidong and Ayrton examples. Don't forget to read the errata if you plan to run those peers from different PC's.
Your use of this web site or any of its content or software indicates your agreement to be bound by these Terms of Participation.
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.