the NetConnection.farID is the ID of the RTMFP server to which you're connected.
the NetStream.farID of the subscribing/playing peer should match the NetConnection.nearID of the publishing peer. on the publishing end, the publishing NetStream has a property "peerStreams", which contains a separate NetStream for each connected subscribing peer. a member of that array will have a farID that matches the nearID of the subscribing peer.
could you please write the codes of how to get the secondly connected peer's nearID automatically..
and automatically using that secondly connected peer's nearID as a farID to finally establish a p2p connection between them..
(without copy and pasting eachothers nearIDs manually to establish p2p connection)
i dont know is it possible but i have read many many titles and subject about p2p and heard about onPeerConnect etc. but i never been successful..
i just want to create an app like that when peerA runs the swf and after that peerB runs the same swf, i want to get p2p connection between them without copying and pasting nearIds and without NetGroup cause i want a direct connection between peers..
is it possible ? if the answer is yes, please teach me how ? please write here the correct and working codes of a simple app of my wishes.. i am searching and reading for weeks
the cirrus sample application uses a web service to store and look up peer IDs associated with a name.
hmm ok maybe i can use shared object at fms instead of a web service..
could you please show me the correct usage of onPeerConnect and how it works ?