View Single Post
  #3 (permalink)  
Old June 5th, 2011
GregorK GregorK is offline
Phex Developer
 
Join Date: May 9th, 2001
Location: Stuttgart, Germany
Posts: 988
GregorK is flying high
Default

Both is possible:

Ultrapeer: You can force Phex to be ultrapeer by setting the preference:
Connection.ForceToBeUltrapeer = true
or modify class PrivateNetworkConstants.DEFAULT_FORCE_TOBE_ULTRAPE ER

Otherwise check Servent.isAbleToBecomeUltrapeer() for the conditions that need to apply for a servent to become ultrapeer.


The file src/main/resources/phex/resources/phex.hosts contains a list of hosts Phex tries to connect to on startup.
If you like to create a real private network, there are a few code changes that need to be applied. There should be some outdated instructions in the forum and on the Phex wiki. If you like to experiment with it and like to help to incorporate this into the source with an easy "private" switch, it would be very cool.

Gregor
__________________
Reply With Quote