java - How to directly connect two or more client sockets together? -


i'm looking way connect 2 or more client sockets directly without need server application running. i've searched several ways , best find jxta p2p protocol. want know if there alternatives other jxta.

the basic functionalities of clients interacting (1) ability client send messages other clients , (2) request file available other client has.

it's worth noting i'll running multiple instances of application on computer (localhost), having nats or firewalls aren't issues.

you want multicast sockets.

this question appears have code need implement them.

note appropriate applications running on lan, have. supporting multicast across different networks (and across different segments of single large network) requires router support.


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -