PDA

View Full Version : Forcing XBMC's FTP client to PORT/Active mode


boyhowdy
2008-09-11, 03:18
Using the Atlantis Alpha 4 build

I am trying to connect to a local ftp server where I have my media files.
However, when I try to connect it fails and upon looking at the logs it is due to XBMC trying to connect in PASV mode. I need to be able to connect to the ftp server in PORT (active) mode.

How can I tell XBMC to use PORT mode when it connects to this ftp share?

P.S. Any reason why sources.xml items wouldn't be showing up under a particular section (ie Videos)

WiSo
2008-09-11, 10:18
mmh currently XBMC for win32 is compiled without a FTP server.

Gamester17
2008-09-11, 13:34
Are you using XBMC for Windows (http://xbmc.org/download/), or XBMC for Xbox (http://xbmc.org/download/)? ???
and are you using XBMC as an FTP client or an FTP server?

...and in any case please post a debug log.

boyhowdy
2008-09-11, 16:03
I am using XBMC for Windows Atlantis Alpha 4 build.

I am trying to access local ftp server where I have all my files so I am using the XBMC ftp to try and stream files from my media server (instead of something like smb).

I am at work currently so I don't have the log in front of me. The log shows that XBMC was able to connect to my ftp server but then my ftp server says something to the effect
"500 - PASV not supported please connect with PORT"

boyhowdy
2008-09-11, 16:12
For anyone still confused about the ftp share it would be like setting up a sources.xml like this
<music>
<source>
<name>FTP Share</name>
<path>ftp://user:pass@192.168.1.2/music</path>
</source>
</music>

boyhowdy
2008-09-12, 01:08
pastebin log http://pastebin.ca/1200493 for the PASV rejection

The PRET command only needs to be used if PASV is used, if I can connect via PORT, the PRET command is not needed.

Of course I would not object to having PRET implemented in the ftp client :D
Info on the PRET command:
http://drftpd.org/index.php/PRET_Specifications

Patches for two different ftp clients for PRET implementation
http://drftpd.org/index.php/Pftp_pret_patch
http://drftpd.org/index.php/Pftpmew_pret_patch

kraqh3d
2008-09-15, 21:37
xbmc uses CURL. when CURL supports it, xbmc will support it.

boyhowdy
2008-09-18, 23:58
-P/--ftp-port <address>
this is from 'man curl' http://curl.haxx.se/docs/manpage.html

So curl does support it, I am just wondering how do I get XBMC to trigger it, or use it

boyhowdy
2008-09-23, 18:54
any help here?

vdrfan
2008-09-28, 02:37
Should be fixed in r15701. Please try again using the following syntax ftp://user:pass@host:port?active

Wednesday2009
2009-04-15, 12:17
:nod::laugh::laugh::laugh
It works well. Thanks so much indeed!

pret auto (http://pret-auto.org)