![]() |
Howto use Phex for LAN file sharing? Hello, We would like to use phex in our LAN, so we created a private network and we are able to connect to each other. We can browser the shared file, however search does not work and if we would like to download something phex only writes: "Ignored Candidate (push route failed)". Any ideas what could be wrong? Thank you in advance, lg Clemens |
As written in the Mail, the first thing I would test is, if the option "other nearby Phex running" is active. If enabling that shouldn't solve the problem, we'd be glad, if you'd go bug hunting with us. Gregor might have some more info. Best wishes, Arne |
1 Attachment(s) Yes "other nearby Phex running" was active all the time, although I am sure we also tried it with it disabled ;-) Here is a bit more information about our configuration: - 2 Machines, 192.168.48.175/177:5555, subnet-mask is 255.255.254.0 - Selected Network named "GasoB", same on both clients. - Both clients forced to be an Ultrapeer - Network-Panel-Screenshot attached to this post. - Connected only "by hand", by going to "Gnutella Net" Tab and entering at 192.168.48.175: "192.168.48.177:5555" and vice versa. So each machine has the others phex instance once in the connection list. However Phex itself is not in "Connected" state (you can go to Menu->Network->Connect), since then it only would try to connect to thousands of others Networks which fails because we use "GasoB". If I click in the "Gnutella Net"-Tab on "Browse Host" I can see the files the other client shares (this works on both clients), however when searching for stuff I always get zero results. Downloading stays in "Waiting" forever, with the following two messages I've seen till now: 1.) "Ignored Candidate (push route failed)" 2.) Candidate not available Would it help if I log the communication of both with ethereal/wireshark and post it here? Thanks a lot for your help, lg Clemens |
I guess both clients appear to be firewalled, or? Check for a fire in the left corner of the status bar. This could maybe be the problem... though I'm not sure how to quickly solve this yet. |
Hmm... No, I don't see a fire-symbol anywhere with the "Gnutella Net" Tab open. Both clients are not firewalled against each other and don't have personal firewalls installed (and also internet-access is available via NAT, but both clients have then the same external IP), but I guess I simply don't understand the problem ;-) However because we would like to use this private-network for internal sharing we would like to avoid "external" connections as far as possible. Thanks for helping, lg Clemens |
Would it be possible for you to use the SVN source version from https://phex.svn.sourceforge.net/svn...ase-line-3.0.x and then patching it and compiling it... Just to check if the problem is where I assume it ;) |
Sure Sure - absolutly - wow! You've impressed me, thanks for be willing to invest all the time into such a corner-case problem! Ok, the downloaded stuff builds and runs fine ... so I am ready :-) lg Clemens |
Currently I don't have any other peers available to make sure there's really no firefall-symbol there. If I connect to myself (using my own IP) I can see the fire-symbol. I'll re-check as soon as I get access to a second computer. |
Oh well... the change is not that big ;) In file /src/phex/net/Server.java Line 132 replace the Method with the following: public boolean hasConnectedIncoming() { return true; } I'm not sure if this is the problem... but its maybe related... if it dosnt help i need to do some extended testing myself. |
seems good so far (I can't currently only test with a singly client connected to itself), but in the evening I'll test and report more. For now I'll have to go to university. Thanks a lot for the help so far, lg Clemens |
Thanks a lot - works wonderful :-) |
That means, the firewall-detection of Phex did create the problems in the private network... Thanks for testing! And I'm glad it works for you as it's intended to :) Please keep us informed of your experience! |
First of all thanks a lot for all your patience and support. I am currently creating a phex-version for use in our student-hostel (studentenwohnheim) where even stupid users should be able to share ;-) As I reported here http://www.gnutellaforums.com/showthread.php?t=65833 I am having problems with too many open files. It seems that files that were opened for upload are not closed. (one file is opened about 100x for one upload). lg Clemens |
Great to hear, that you want to use it in the Studentenwohnheim! How big are the changes you are making? And can we have a look, when they are ready? :) Best wishes, Arne |
Quote:
* Mostly hard-coded options (so everybody _has_ to share fair) * Very simply Tray support (so that users can let it run in background), with fallback if tray-support is not available. * Self-Search phex-instances in a very limited IP-Adress-Range. Quote:
lg Clemens |
If you might use JDIC for tray support I would be very interested in it or even better work together on it. |
I used the Java6's classes (which were developed by JDIC) in java.awt, if users use Java5 it simply does not support the tray. However my code is ugly and stupid - its really just a hack to fullfill a single need. lg Clemens |
Then... could you make it available as a Studentenwohnheim-Edition as soon as you finished it? I think it would be great having a specialized fork for LANs, which people can just download and use! Liebe Grüße, Arne |
Hi guys, since the last post is one month ago, i'd like to know whether u'r progressing with the work with that Studentenwohnheim-Edition. We are just having the same problem here, and if u already did the work... i'd love to use it ;]. If you won't answer within the next 2/3 days, I assume that the edition is not worth using it due some reason (not finished? bad code? whatever..). If thats the case, I will try to do it on my own (in a clean way). Another point: I'd like to have a feature for IRC-windows. If you don't mind, I will try to add that, too. Short summary: - private network contraints [limit hosts to given IP ranges] - IRC support (ofc only client) If you wonna help me, pls post sth I can contact you. If this would be a guy who already knows the code better than i do, it'd be great. If not, it's great too ;) In love, <= mE |
yes you're right. Its not worth using it. Create your own. |
:/ Well, then I will do so. Thanks anyway... In love, <= mE |
If you need any help to understand the code or where it might need tuning, feel free to contact me, through the forum, IM or #phex on irc.freenode.net I'm not 24h on though, only when at home. @Linuxhippy You know that if you need any further help to make your edition worth using, I'm happy to assist. |
Well I broke it in some way but sure I'll "fix" it somehow and put it online as I promised. I am just a bit short of time ;) However it most likely won't be used in out studentenheim because it uses so much memory for each shared file and all attempts to fix it did only solve the problem partially :-/ I was just a bit angry about the way the question was written so if this guy talks about other's poor code or sets deadlines ... well ... then let him suceed in what others fail ^^ lg Clemens |
Please don't let it flare emotions. Forum posts are easy enough to misunderstand among native speakers, and even easier, if neither writer nor reader are native speakers of the used language (which goes for me as well ;) ) About the memory problem you could try using the new Phex release as base since we fixed a nasty memory leak in 3.0.0. |
@ Linuxhippy: Sorry, dude, did not want to hurt you :/. The reason for my "deadline" isn't arrogance but the feeling that the last post is actually some time ago. I was a bit of pessimistic about your code, thats true ;/ But again, I hope not because of arrogance, but because u mentioned things like that: "However my code is ugly and stupid" & "Mostly hard-coded options". Sorry about the confusion... if there is any code which could help, i'd like to read/use it. But you should be able to judge whether its worth much better than I do, so pls don't be angry about my point of view. [I just take what you say. If you say it's not worth it, I won't bother you.] I agree with arne_bab. Just forget what I said and feel free to contact me if you have something. Peace out ;), <= mE |
How does it go? |
Actually, i will delay this stuff for at least 3 month. My bachelor thesis deals with p2p-networks too [nat-traversal techniques], and I prefer not to be on 2 projects in the same "category", i prefer some change. as soon as i begin with it, i will post it. |
Could you post a link to you rthesis here, as soon as you finished it? I think it will be quite interesting to Phex. Best wishes, Arne |
Problems with searchin in a LAN network! Hello, In file /src/phex/net/Server.java Line 132 replace the Method with the following: public boolean hasConnectedIncoming() { return true; } After I replace as the above, I can download files from other peers. I can browse files from other peers. But when I search, there is no result from other peers in a Private network. How can I search files from other peers in a LAN network? Thank alot! |
Reduce your posting speed and double posts... you wont get answers faster with more post... you will just reduce the chance of an answer... There are many many reasons why a search might not get results: no query routing table exchanged yet, files not fully hashed, hosts appear firewalled (icon in lower left corner), host is busy... and on and on and on... you might need to debug your special case.. You might like to check if the query reaches its destination (query monitor tab) and then debug why the destination doesn't answer. For example check ShareManager.handleQuery() starting at line 135 There are various reasons stated why a search gets no responses. Also MessageDispatcher.handleQuery() at line 213 might drop/ignore out of whatever reason. |
@Clemens (aka Linuxhippy): How is your Phex Studentenwohnheim Edition going? Did you make further progress? And could you send us a snapshot of your code? |
All times are GMT -7. The time now is 04:46 AM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 ©2011, Crawlability, Inc.
Copyright © 2020 Gnutella Forums.
All Rights Reserved.