Skip to main content

How to discover peer

1 reply [Last post]
intel3
Offline
Joined: 2009-03-23
Points: 0

I am a bit confused about how to discover peers in the internet. Is it possible to discover all possible advertisement on the internet and then try to connect to it or do i have to specify the group or peer ID in the discovery query message and find a matching advertisement?

Thanks

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
adamman71
Offline
Joined: 2007-01-31
Points: 0

See the Javadoc for the getRemoteAdvertisements() method of the discovery service. You can have peers return their advertisements if you select proper values.

J.