Gnutella Forums

Gnutella Forums (https://www.gnutellaforums.com/)
-   General Discussion (https://www.gnutellaforums.com/general-discussion/)
-   -   Howto use Phex for LAN file sharing? (https://www.gnutellaforums.com/general-discussion/65796-howto-use-phex-lan-file-sharing.html)

Linuxhippy January 8th, 2007 11:45 AM

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

arne_bab January 8th, 2007 03:08 PM

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

Linuxhippy January 9th, 2007 02:15 AM

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

GregorK January 9th, 2007 03:51 AM

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.

Linuxhippy January 9th, 2007 04:17 AM

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

GregorK January 9th, 2007 04:30 AM

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 ;)

Linuxhippy January 9th, 2007 04:32 AM

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

Linuxhippy January 9th, 2007 05:18 AM

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.

GregorK January 9th, 2007 05:23 AM

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.

Linuxhippy January 9th, 2007 05:29 AM

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

Linuxhippy January 9th, 2007 01:08 PM

Thanks a lot - works wonderful :-)

arne_bab January 9th, 2007 03:28 PM

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!

Linuxhippy January 9th, 2007 04:27 PM

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

arne_bab January 10th, 2007 05:14 AM

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

Linuxhippy January 10th, 2007 05:28 AM

Quote:

Originally Posted by arne_bab
How big are the changes you are making?

Not that big:
* 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:

And can we have a look, when they are ready? :)
Sure, its GPL after all (when its done). But its an implementation Nightmare, really.

lg Clemens

GregorK January 10th, 2007 06:30 AM

If you might use JDIC for tray support I would be very interested in it or even better work together on it.

Linuxhippy January 10th, 2007 07:10 AM

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

arne_bab January 11th, 2007 12:05 PM

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

LeviIntelexiCondemnavi February 18th, 2007 02:44 PM

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

Linuxhippy February 18th, 2007 04:28 PM

yes you're right. Its not worth using it.

Create your own.

LeviIntelexiCondemnavi February 18th, 2007 06:27 PM

:/ Well, then I will do so. Thanks anyway...

In love,
<= mE

GregorK February 19th, 2007 12:53 AM

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.

Linuxhippy February 19th, 2007 02:39 AM

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

arne_bab February 19th, 2007 08:03 AM

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.

LeviIntelexiCondemnavi February 19th, 2007 10:26 PM

@ 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

arne_bab March 15th, 2007 05:03 AM

How does it go?

LeviIntelexiCondemnavi March 15th, 2007 07:26 AM

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.

arne_bab March 16th, 2007 01:40 AM

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

duclh April 8th, 2007 08:38 AM

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!

GregorK April 9th, 2007 02:14 AM

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.

arne_bab October 8th, 2007 03:46 AM

@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.