Forcing XBMC's FTP client to PORT/Active mode
#1
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)
Reply
#2
mmh currently XBMC for win32 is compiled without a FTP server.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
Reply
#3
Question 
Are you using XBMC for Windows, or XBMC for Xbox? Huh
and are you using XBMC as an FTP client or an FTP server?

...and in any case please post a debug log.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
Reply
#4
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"
Reply
#5
For anyone still confused about the ftp share it would be like setting up a sources.xml like this
Code:
<music>
  <source>
    <name>FTP Share</name>
    <path>ftp://user:[email protected]/music</path>
  </source>
</music>
Reply
#6
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 Big Grin
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
Reply
#7
xbmc uses CURL. when CURL supports it, xbmc will support it.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
Reply
#8
Quote:-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
Reply
#9
any help here?
Reply
#10
Should be fixed in r15701. Please try again using the following syntax
Code:
ftp://user:pass@host:port?active
Always read the online manual (wiki), FAQ (wiki) and search the forum before posting.
Do not PM or e-mail Team-Kodi members directly asking for support. Read/follow the forum rules (wiki).
Please read the pages on troubleshooting (wiki) and bug reporting (wiki) before reporting issues.
Reply
#11
NodLaughLaugh:laugh
It works well. Thanks so much indeed!

pret auto
Reply
#12
(2008-09-28, 01:37)mkortstiege Wrote: Should be fixed in r15701. Please try again using the following syntax
Code:
ftp://user:pass@host:port?active

I did modify the sources.xml by adding "?active" after the port and it did the trick. I am now able to get the directory listing but when I try to run a file (video) the "?active" option goes to the end of the path.
i.e: ftp://user:[email protected]:port/folder1/folder2/?active

and the operation gets stuck.
When I check the logs in the ftp server I see that user gets authenticated but never does a transfer.

Am I missing something?

Kodi (latest release) running on a raspberry pi and server is synology NAS.

thanks in advance
Reply

Logout Mark Read Team Forum Stats Members Help
Forcing XBMC's FTP client to PORT/Active mode0