Gnutella Forums  

Go Back   Gnutella Forums > Current Gnutella Client Forums > Phex (Cross-platform) > Development & Coding > Development Open Discussion
Register FAQ The Twelve Commandments Members List Calendar Arcade Search Today's Posts Mark Forums Read

Development Open Discussion Anything else about the Phex development


Welcome To Gnutella Forums

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, fun aspects such as the image caption contest and play in the arcade, and access many other special features after your registration and email confirmation. Registration is fast, simple and absolutely free so please, join our community today! (click here)

If you have any problems with the Gnutella Forum registration process or your Gnutella Forum account login, please contact us (this is not for program use questions.) Your email address must be legitimate and verified before becoming a full member of the forums. Please be sure to disable any spam filters you may have for our website, so that email messages can reach you.
Note: Any other issue with registration, etc., send a Personal Message (PM) to one of the active Administrators: Lord of the Rings or Birdy.

Once registered but before posting, members MUST READ the FORUM RULES (click here) and members should include System details - help us to help you (click on blue link) in their posts if their problem relates to using the program. Whilst forum helpers are happy to help where they can, without these system details your post might be ignored. And wise to read How to create a New Thread

Thank you

If you are a Spammer click here.
This is not a business advertising forum, all member profiles with business advertising will be banned, all their posts removed. Spamming is illegal in many countries of the world. Guests and search engines cannot view member profiles.



Deutsch? . . . . Español? . . . . Français? . . . . Nederlands? . .
Hilfe in Deutsch, . Ayuda en español, . Aide en français . et . LimeWire en français, . Hulp in het Nederlands

Forum Rules

Support Forums

Before you post to one of the specific Client Help and Support Conferences in Gnutella Client Forums please look through other threads and Stickies that may answer your questions. Most problems are not new. The Search function is most useful. Also the red Stickies have answers to the most commonly asked questions. (over 90 percent).
If your problem is not resolved by a search of the forums, please take the next step and post in the appropriate forum. There are many members who will be glad to help.
If you are new to the world of file sharing please do not be shy! Everyone was ‘new’ when they first started.

When posting, please include details for:
Your Operating System ....... Your version of your Gnutella Client (* this is important for helping solve problems) ....... Your Internet connection (56K, Cable, DSL) ....... The exact error message, if one pops up
Any other relevant information that you think may help ....... Try to make your post descriptive, specific, and clear so members can quickly and efficiently help you. To aid helpers in solving download/upload problems, LimeWire and Frostwire users must specify whether they are downloading a torrent file or a file from the Gnutella network.
Members need to supply these details >>> System details - help us to help you (click on blue link)


Moderators

There are senior members on the forums who serve as Moderators. These volunteers keep the board organized and moving.
Moderators are authorized to: (in order of increasing severity)
Move posts to the correct forums. Many times, members post in the wrong forum. These off-topic posts may impede the normal operation of the forum.
Edit posts. Moderators will edit posts that are offensive or break any of the House Rules.
Delete posts. Posts that cannot be edited to comply with the House Rules will be deleted.
Restrict members. This is one of the last punishments before a member is banned. Restrictions may include placing all new posts in a moderation queue or temporarily banning the offender.
Ban members. The most severe punishment. Three or more moderators or administrators must agree to the ban for this action to occur. Banning is reserved for very severe offenses and members who, after many warnings, fail to comply with the House Rules. Banning is permanent. Bans cannot be removed by the moderators and probably won't be removed by the administration.


The Rules

1. Warez, copyright violation, or any other illegal activity may NOT be linked or expressed in any form. Topics discussing techniques for violating these laws and messages containing locations of web sites or other servers hosting illegal content will be silently removed. Multiple offenses will result in consequences. File names are not required to discuss your issues. If filenames are copyright then do not belong on these forums & will be edited out or post removed. Picture sample attachments in posts must not include copyright infringement.

2. Spamming and excessive advertising will not be tolerated. Commercial advertising is not allowed in any form, including using in signatures.

3. There will be no excessive use of profanity in any forum.

4. There will be no racial, ethnic, or gender based insults, or any other personal attacks.

5. Pictures may be attached to posts and signatures if they are not sexually explicit or offensive. Picture sample attachments in posts must not include copyright infringement.

6. Remember to post in the correct forum. Take your time to look at other threads and see where your post will go. If your post is placed in the wrong forum it will be moved by a moderator. There are specific Gnutella Client sections for LimeWire, Phex, FrostWire, BearShare, Gnucleus, Morpheus, and many more. Please choose the correct section for your problem.

7. If you see a post in the wrong forum or in violation of the House Rules, please contact a moderator via Private Message or the "Report this post to a moderator" link at the bottom of every post. Please do not respond directly to the member - a moderator will do what is required.

8. Any impersonation of a forum member in any mode of communication is strictly prohibited and will result in banning.

9. Multiple copies of the same post will not be tolerated. Post your question, comment, or complaint only once. There is no need to express yourself more than once. Duplicate posts will be deleted with little or no warning. Keep in mind a forum censor may temporarily automatically hold up your post, if you do not see your post, do not post again, it will be dealt with by a moderator within a reasonable time. Authors of multiple copies of same post may be dealt with by moderators within their discrete judgment at the time which may result in warning or infraction points, depending on severity as adjudged by the moderators online.

10. Posts should have descriptive topics. Vague titles such as "Help!", "Why?", and the like may not get enough attention to the contents.

11. Do not divulge anyone's personal information in the forum, not even your own. This includes e-mail addresses, IP addresses, age, house address, and any other distinguishing information. Don´t use eMail addresses in your nick. Reiterating, do not post your email address in posts. This is for your own protection.

12. Signatures may be used as long as they are not offensive or sexually explicit or used for commercial advertising. Commercial weblinks cannot be used under any circumstances and will result in an immediate ban.

13. Dual accounts are not allowed. Cannot explain this more simply. Attempts to set up dual accounts will most likely result in a banning of all forum accounts.

14. Video links may only be posted after you have a tally of two forum posts. Video link posting with less than a 2 post tally are considered as spam. Video link posting with less than a 2 post tally are considered as spam.

15. Failure to show that you have read the forum rules may result in forum rules breach infraction points or warnings awarded against you which may later total up to an automatic temporary or permanent ban. Supplying system details is a prerequisite in most cases, particularly with connection or installation issues.

Violation of any of these rules will bring consequences, determined on a case-by-case basis.


Thank You! Thanks for taking the time to read these forum guidelines. We hope your visit is helpful and mutually beneficial to the entire community.


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old February 28th, 2010
Devotee
 
Join Date: December 21st, 2009
Posts: 29
hustnn is flying high
Default How to setup the gnutella network using phex

If I own 5 machines in the local network.Then I want to build the local gnutella network using the phex, what should I do? Can I build the local gnutella network in LAN?How?

How to make my node become the ultraPeer?
Reply With Quote
  #2 (permalink)  
Old June 4th, 2011
Disciple
 
Join Date: June 2nd, 2011
Location: Bremen (Germany)
Posts: 17
giorgiob is a great assister to others; your light through the dark tunnel
Default

I would like to do a similar experiment as a test.

I would like to build a network with 2 or 3 computers and have one servent running on each node.
As far as I understand, a servent has a number of IP addresses where it looks for other running servents at startup.

Question: Where (in the code) are these addresses configured in phex?
Is it possible to have them read from a configuration file?


I would also be interested to know how to switch a phex servent to ultra peer mode (in case this is possible).
Reply With Quote
  #3 (permalink)  
Old June 5th, 2011
Phex Developer
 
Join Date: May 9th, 2001
Location: Stuttgart, Germany
Posts: 980
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
  #4 (permalink)  
Old June 6th, 2011
Disciple
 
Join Date: June 2nd, 2011
Location: Bremen (Germany)
Posts: 17
giorgiob is a great assister to others; your light through the dark tunnel
Default

Since I would like to write an application that exchanges files using phex, I would like to set up my local network to test it first, i.e. I want that
  1. phex connects to specific hosts in my network
  2. phex does not look for further peers on the internet, even if it is connected to the internet
I do not understand exactly why I need to change the source code, shouldn't it be sufficient to change the hosts file?

Anyway, I will look at instructions in the forum before I proceed.

Thanks for the feedback.
Reply With Quote
  #5 (permalink)  
Old June 17th, 2011
Disciple
 
Join Date: June 2nd, 2011
Location: Bremen (Germany)
Posts: 17
giorgiob is a great assister to others; your light through the dark tunnel
Default

I have managed to get Ubuntu on some old computer and start phex from there. I also started phex on my main computer and both servents are connected to each other.
So, I have a network of two computers. Now I have a folder phex in my home directory. It contains three folders: download, incomplete, shared

I have put a file (some mp3 whose file name contains the word "bach") in folder shared. From phex I have added the shared folder to Library -> Shared Files. But now, if I start a search on the other phex servent (search for "bach") I get no result.

Does anyone have an idea as to what I might be doing wrong?

Thank you in advance and many greetings
Giorgio

Last edited by giorgiob; June 17th, 2011 at 02:13 PM.
Reply With Quote
  #6 (permalink)  
Old June 19th, 2011
Phex Developer
 
Join Date: May 9th, 2001
Location: Stuttgart, Germany
Posts: 980
GregorK is flying high
Default

This is the kind of problem I was talking about when you create our own private network.
The problem is, if both servents have not connected to the public Gnutella network, they still assume they are firewalled. If both servents are firewalled they will determine that they can't download from each other... so they want display search results.

In the class Servent.isFirewalled() try to return false as a fixed value. I'm not sure if this is already all that is needed. Somewhere there should a forum thread or a wiki page I think that explains all steps..
__________________
Reply With Quote
  #7 (permalink)  
Old June 19th, 2011
Disciple
 
Join Date: June 2nd, 2011
Location: Bremen (Germany)
Posts: 17
giorgiob is a great assister to others; your light through the dark tunnel
Default

Thanks for the hint! It works now.

Maybe there should be a more sophisticated way to determine whether a servent can download from another servent. I.e., if two servents are on the same local network, this should be possible even if they are behind a firewall.

The next problem I have is that both servents also get connected to external servents, even though I have used my own hosts file.
Can it be that external servents have my servents in their caches and try to connect to my servents when they are online? This would mean that my servents to do not try to connect to external servents but external servents find them anyway.
Reply With Quote
  #8 (permalink)  
Old June 19th, 2011
Phex Developer
 
Join Date: May 9th, 2001
Location: Stuttgart, Germany
Posts: 980
GregorK is flying high
Default

Yes but how do you determine whether two servents are on the same local network.
You can't relay on the same IP range, they could be in two different networks. The only reliable way would be to use some multicast channel, which could also be used for a more efficient communication inside a local network.
Though there are many ideas to make this better and more efficient, we had no time and developers yet to implement this.

You need to change your network name to prevent external servents from connecting. You can do this through the Phex UI (Switch Network) or hard wire it in the PrivateNetworkConstants.
__________________
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -7. The time now is 01:12 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 ©2011, Crawlability, Inc.

Copyright © 2015 Gnutella Forums.
All Rights Reserved.