Skip to main content

Discover and LIST network on LAN?

2 replies [Last post]
Joined: 2008-12-22


Can someone please tell me if it is possible to obtain a list of available networks in the LAN?

I mean: I know that by default, jxta tries to connect to networks found in the LAN, but which one will it choose if there are more than one netoworks found?

I know that networks can be separated by specifying a different Infrastructure ID to each of them and that they can be joined only if the joining peer has set the infrastructure ID of the network he wants.

Question1: What happens when 2-3 networks are started inside a LAN using the default infrastructure ID?
1.1 Will they mix up into one big network?
1.2 Is the default Infrastructure ID a fixed, hardcoded ID? (Edit: Yes, forgot that, it's PeerGroupID.defaultNetPeerGroupID)

Question2: How can one peer discover and list the available networks(with different infrastructure IDs) inside a LAN so it can select the network it wants to connect to?
1.1 Can this be done, or are they all "undiscoverable" and require the correct Infrastructure ID to connect? If so, this is highly unpracticle.

Thank you very much for your time and I await any form of enlightenment :)


Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2008-12-22


Joined: 2008-12-22

Also, if more than one networks coexist inside a LAN, does this mean that to connect to one of them you also need to make the user input the Infrastructure ID (messy and hard to remember UUID)?

I am thinking of the World Peer Group (one level above).
Can this be used to discover groups(netPeerGroups of the network inside the LAN) inside it? Are all the networks inside the LAN members of the world peer group?
Otherwise, what's the point of a World peer group anyway?