Gnutella Forums  

Go Back   Gnutella Forums > Current Gnutella Client Forums > Phex (Cross-platform) > Help & Support
Register FAQ The Twelve Commandments Members List Calendar Arcade Find the Best VPN Today's Posts

Help & Support Information on the useage and anything else of Phex
- Unless you are using or asking about PHEX, please do not post in this section
(Get ”Phex 3.4.2.163 universal" now)


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old January 3rd, 2008
Apprentice
 
Join Date: January 3rd, 2008
Posts: 5
ilmorez is flying high
Default LAN dowload waiting (ignored candidate)

Hi guys
First of all I would like to thank you for your effort in developing Phex. Now the question: I'm trying to use Phex in a LAN, for a private network (2 PC at the moment) but I've got some problems in the downloading phase, I'll try to explain better (I will report what I did the best I can). As I said I've got 2 computers, the first one (let's call it PCA) has ip 192.168.1.7, while the second one (let's call it PCB) has ip 192.168.1.9. I started Phex on both computers. On PCB I added a favourite host (PCA of course so 192.168.1.7:34625), hilight it and then I pressed Connect. At this point on both computers I can see that the connection has been established. From each computer I can see the other one that is connected, and this is ok Now, from PCA I right-clicked on the PCB entry in the remote host list, I selected Browse host and then I double-clicked on a file name, now the download should start but it get stuck in waiting status. In the download panel I can see the file but the download doesn't start. Selecting the download entry, on the Candidate list there's the status "ignored candidate (push route failed)". This is the log I get (using the instruction read from another thread):
Code:
080103 21:43:29,0531::Allocating as medium candidate.
080103 21:43:29,0547::Setting status to Push request... Waiting 0 sec. and raise timeout from 1199393009547 to 1199393039547(30000) Reason:null. OldStatus: WAITING
080103 21:43:29,0547::Setting status to Connection failed (1). and raise timeout from 1199393009547 to 1199393129547(120000) Reason:null. OldStatus: PUSH_REQUEST
080103 21:43:29,0547::Moving candidate to bad list (ignoring).
080103 21:43:29,0547::Setting status to Ignored candidate (push route failed). and raise timeout from 1199393009547 to 9223372036854775807(9223370837461766260) Reason:CandidateStatusReason_PushRouteFailed. OldStatus: CONNECTION_FAILED
080103 21:43:29,0547::Push request fails for candidate: [Candidate: Phex,Adr:192.168.1.9:29151 ->phex.download.swarming.SWDownloadCandidate@c0b5cd19]
Last words just to say that:
- I 've disabled all firewalls;
- I've read this how to
- I've search a lot in the forum
Thanks in advance for helping
Have a nice evening
Reply With Quote
  #2 (permalink)  
Old January 4th, 2008
Phex Developer
 
Join Date: May 9th, 2001
Location: Stuttgart, Germany
Posts: 988
GregorK is flying high
Default

Hi..

first of all the obligatory questions. Did you build Phex from source or SVN? Are PCA and PCB in "force Ultrapeer" status? Is any of the PCs carrying the mark "(PP)" in the Mode column on the network tab (This is actually a bug in 3.2)? Are the hosts still connected to each other during/after the download failed? You disabled all firewalls but did Phex still show a little flame on the connection status icon in the status bar in the bottom left corner?

Gregor
__________________
Reply With Quote
  #3 (permalink)  
Old January 4th, 2008
Apprentice
 
Join Date: January 3rd, 2008
Posts: 5
ilmorez is flying high
Default

Hi GregorK,
thanks in advance for your fast reply, unfortunately I'm at work at the moment so I cannot check every single point that you ask, I will check them when I'll go back home. But for some of this I can reply right now:

Quote:
Did you build Phex from source or SVN?
I didn't build Phex from source code. I just download the binary.

Quote:
Are PCA and PCB in "force Ultrapeer" status?
Yes.

Quote:
Is any of the PCs carrying the mark "(PP)" in the Mode column on the network tab (This is actually a bug in 3.2)?
I have to take a look at this when I will be back home

Quote:
Are the hosts still connected to each other during/after the download failed?
Yes. They are green-colored and "Connected" on the host list.

Quote:
You disabled all firewalls but did Phex still show a little flame on the connection status icon in the status bar in the bottom left corner?
I'm quite sure there is no flame. But I prefer to check it better this evening before giving you a wrong reply.

Thanks again for helping
Reply With Quote
  #4 (permalink)  
Old January 4th, 2008
Apprentice
 
Join Date: January 3rd, 2008
Posts: 5
ilmorez is flying high
Default

Hi again,
so I checked again Phex and this are the results:

Quote:
Is any of the PCs carrying the mark "(PP)" in the Mode column on the network tab (This is actually a bug in 3.2)?
No. Both in the status have "Utrapeer".

Quote:
You disabled all firewalls but did Phex still show a little flame on the connection status icon in the status bar in the bottom left corner?
I have to chage my inital answer. This is what I have
Picasa Web Album - Marco - Phex

(Sorry for the visualization but this forum seems to change the image url)
I think it looks like a flame..right?
So, what should I do? Do I have to hack the code? If yes how exactly?
Thank again for the support, I really appreciate.
Reply With Quote
  #5 (permalink)  
Old January 4th, 2008
Phex Developer
 
Join Date: May 9th, 2001
Location: Stuttgart, Germany
Posts: 988
GregorK is flying high
Default

The "flame" prevents you both from directly connection to each other. But the PUSH should work out fine for you, not sure yet why it fails... I think I remember someone had a similar problem a few months ago with private networks...

Hacking a few lines of code would likely be the fastest way for you to get a solution, but its also the more difficult approach, depending on your Java knowledge... basically I would tell you how you get ride of the flame.
__________________
Reply With Quote
  #6 (permalink)  
Old January 4th, 2008
Apprentice
 
Join Date: January 3rd, 2008
Posts: 5
ilmorez is flying high
Default

Hi GregorK,
thanks again for the support. No problem with Java, I've quite good skill with some programming languages including Java.
Reply With Quote
  #7 (permalink)  
Old January 4th, 2008
Phex Developer
 
Join Date: May 9th, 2001
Location: Stuttgart, Germany
Posts: 988
GregorK is flying high
Default

That sounds good!
First I recommend to get the sources from:
https://phex.svn.sourceforge.net/svnroot/phex/phex/tags/release-3.2.0.102

Although 3.2 is already quite old and there should be better source available in the trunk. But the trunk is going through some big refactoring currently, so I can't recommend to use it.

Phex uses Apache ant to build from sources, the scripts are in the build directory.
The output/lib directory should contain the JARs after building.
There is also some more info on the Wiki:
http://www.phex.org/wiki/index.php/B...rom_Subversion

What you need to change is in file /src/phex/net/Server.java replace the method hasConnectedIncoming() with the following:
Code:
public boolean hasConnectedIncoming()
{
    return true;
}
Hope that it will help you.

Gregor
__________________
Reply With Quote
  #8 (permalink)  
Old January 4th, 2008
Apprentice
 
Join Date: January 3rd, 2008
Posts: 5
ilmorez is flying high
Default

Hi GregorK,
IT WORKS! Thanks a lot, you've been very kind.
Quote:
I think I remember someone had a similar problem a few months ago with private networks
Maybe you mean this thread
I read it but I hoped there were a "clean" (I mean without code hacking) way to fix it, but it's ok, it works .. and Phex looks really great to fit in what I was plannig to do.

BTW which IDE do you use for developing it, Netbeans? Eclipse?
Maybe I can try with testing it (even if I will probably use it only in private network) with the support of a good IDE (and a debugger).

Thanks again for helping (and for developing Phex of course )
Reply With Quote
  #9 (permalink)  
Old January 4th, 2008
Phex Developer
 
Join Date: May 9th, 2001
Location: Stuttgart, Germany
Posts: 988
GregorK is flying high
Default

Good to hear that it is working.
I personally use Eclipse for development and debugging.
__________________
Reply With Quote
  #10 (permalink)  
Old September 11th, 2008
arne_bab's Avatar
Draketo, small dragon.
 
Join Date: May 31st, 2002
Location: Heidelberg, Germany
Posts: 1,881
arne_bab is a great assister to others; your light through the dark tunnel
Default

Would it be possible to add a GUI option with which people can say "not behind a firewall and all ports forwarded"?

The hack in the code is pretty small, so maybe it could be replaced by a simple checkbox - instead of having everyone do the same hack.
__________________

-> put this banner into your own signature! <-
--
Erst im Spiel lebt der Mensch.
Nur ludantaj homoj vivas.
GnuFU.net - Gnutella For Users
Draketo.de - Shortstories, Poems, Music and strange Ideas.
Reply With Quote
Reply


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 05:29 PM.


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

Copyright © 2020 Gnutella Forums.
All Rights Reserved.