Gnutella Forums

Gnutella Forums (https://www.gnutellaforums.com/)
-   Help & Support (https://www.gnutellaforums.com/help-support/)
-   -   Browse host question (https://www.gnutellaforums.com/help-support/66903-browse-host-question.html)

dddkkk February 5th, 2007 08:54 PM

Browse host question
 
Im using the latest Phex and have a question about the "browse host" option. In the upload window I can view others uploading files from my box. When one host recieves 3 file uploads at a time he uses a different port for each file. The ports in this case were sequential in the 1700 range. There is a "browse host" button on this page however how does Phex know the proper "listening port" for the host that I wish to select. The ports in use are obviously not the listening ports. Is there something in the communication that states the proper listening port? If not, does anyone know how to query a host for the proper listening port? Since there is no real default listening port anymore for Gnutella it would be helpful to be able to detect it through some means.
Thanks
Dave

GregorK February 6th, 2007 01:44 AM

On connection the displayed port in the upload screen is the port the OS assigns for this connection. It is not related to the listening ports on either side.
During the upload handshake the host exchange HTTP headers. If the header Listen-IP or X-My-Address is received the port is read from these headers.

If you set the value
Upload.UploadStateLogBufferSize = 100000
in your phexCorePrefs.properties you will enable an upload log buffer of 100K, a button is displayed on the upload screen and clicking it shows you the header exchange.

dddkkk February 6th, 2007 06:06 AM

phexCorePrefs.properties
 
Gregor
Thanks for the quick response and thanks for Phex. Very happy with it.

I should have mentioned that Im running it on WinXP sp2. I assume that phexCorePrefs.properties is on the linux version. I have a couple linux distros but I dont really have the option (or know how) to run Phex on those at this time. Any suggestions for XP? If I run Wireshark would I be able to view the HTTP header info and identify the proper port?

Thanks
Dave

GregorK February 6th, 2007 06:50 AM

Check out your Windows "Application Data\Phex" directory.
http://www.phex.org/wiki/index.php/Configuration_Files

dddkkk February 6th, 2007 05:03 PM

Gregor
Thanks again. I added the above line and worked fine. Unfortunatley the log only shows the listening port for about 1 out of 10 uploads. I dont know if this means that their "browse host" feature is turned off or if its something else.
Thanks
Dave


All times are GMT -7. The time now is 03:24 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.