# Net::FTP broken on OS X (Tiger) / Ruby 1.8.2

**URL:** <https://rubytalk.org/t/net-ftp-broken-on-os-x-tiger-ruby-1-8-2/26678>\
**Category:** ruby-talk\
**Created:** [17 April 2006 09:19 UTC](https://rubytalk.org/t/net-ftp-broken-on-os-x-tiger-ruby-1-8-2/26678 "2006-04-17T09:19:06Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Guest19](https://avatars.discourse-cdn.com/v4/letter/g/dbc845/32.png) [@Guest19](https://rubytalk.org/u/Guest19)\
**Post date:** [17 April 2006 09:19 UTC](https://rubytalk.org/t/net-ftp-broken-on-os-x-tiger-ruby-1-8-2/26678/1 "2006-04-17T09:19:06Z")

</div>

I'm running Ruby 1.8.2 on my Tiger machine. I'm trying to use Net::FTP  
on the machine.

I can login to the server fine, but when I try a ftp.list IRB just  
hangs, then gives me something like this:

Net::FTPTempError: 425 Could not open data connection to port 54406:  
Connection timed out

If I run the same code on my Debian Linux box (also Ruby 1.8.2) it works  
flawlessly.

Ideas??? This is driving me nuts. I need to be able to dev on my mac...

Thanks in advance.

> **···**
>
> --  
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).

---

<div class="post-metadata">

**Author:** ![Jeremy\_Tregunna](https://avatars.discourse-cdn.com/v4/letter/j/e99b99/32.png) [@Jeremy\_Tregunna](https://rubytalk.org/u/Jeremy_Tregunna)\
**Post date:** [17 April 2006 09:51 UTC](https://rubytalk.org/t/net-ftp-broken-on-os-x-tiger-ruby-1-8-2/26678/2 "2006-04-17T09:51:37Z")

</div>

Ruby 1.8.2 that comes with Tiger is broken anyway. You should download and compile 1.8.4 yourself.

> **···**
>
> On 17-Apr-06, at 5:19 AM, Subimage wrote:
> 
> > I'm running Ruby 1.8.2 on my Tiger machine. I'm trying to use Net::FTP  
> > on the machine.
> > 
> > I can login to the server fine, but when I try a ftp.list IRB just  
> > hangs, then gives me something like this:
> > 
> > Net::FTPTempError: 425 Could not open data connection to port 54406:  
> > Connection timed out
> > 
> > If I run the same code on my Debian Linux box (also Ruby 1.8.2) it works  
> > flawlessly.
> > 
> > Ideas??? This is driving me nuts. I need to be able to dev on my mac...
> > 
> > Thanks in advance.
> > 
> > --  
> > Posted via [http://www.ruby-forum.com/\](http://www.ruby-forum.com/%5C).
> > 
> > !DSPAM:44435d84136742298113909!
> 
> --  
> Jeremy Tregunna  
> jtregunna@blurgle.ca
> 
> "You cannot depend on your eyes, when your imagination is out of focus." -- Mark Twain

---

<div class="post-metadata">

**Author:** ![Guest19](https://avatars.discourse-cdn.com/v4/letter/g/dbc845/32.png) [@Guest19](https://rubytalk.org/u/Guest19)\
**Post date:** [17 April 2006 09:53 UTC](https://rubytalk.org/t/net-ftp-broken-on-os-x-tiger-ruby-1-8-2/26678/3 "2006-04-17T09:53:44Z")

</div>

Subimage wrote:

> I'm running Ruby 1.8.2 on my Tiger machine. I'm trying to use Net::FTP  
> on the machine.
> 
> I can login to the server fine, but when I try a ftp.list IRB just  
> hangs, then gives me something like this:
> 
> Net::FTPTempError: 425 Could not open data connection to port 54406:  
> Connection timed out
> 
> If I run the same code on my Debian Linux box (also Ruby 1.8.2) it works  
> flawlessly.
> 
> Ideas??? This is driving me nuts. I need to be able to dev on my mac...
> 
> Thanks in advance.

PS: I doubt it's a network config error because I can use Net::HTTP just  
fine.

> **···**
>
> --  
> Posted via [http://www.ruby-forum.com/\](http://www.ruby-forum.com/%5C).

---

<div class="post-metadata">

**Author:** ![Guest19](https://avatars.discourse-cdn.com/v4/letter/g/dbc845/32.png) [@Guest19](https://rubytalk.org/u/Guest19)\
**Post date:** [17 April 2006 10:14 UTC](https://rubytalk.org/t/net-ftp-broken-on-os-x-tiger-ruby-1-8-2/26678/4 "2006-04-17T10:14:26Z")

</div>

Jeremy Tregunna wrote:

> Ruby 1.8.2 that comes with Tiger is broken anyway. You should  
> download and compile 1.8.4 yourself.

I'm quite aware. I compiled it myself so Rails would work....Any other  
suggestions besides recompiling?

> **···**
>
> --  
> Posted via [http://www.ruby-forum.com/\](http://www.ruby-forum.com/%5C).

---

<div class="post-metadata">

**Author:** ![ts1](https://avatars.discourse-cdn.com/v4/letter/t/a8b319/32.png) [@ts1](https://rubytalk.org/u/ts1)\
**Post date:** [17 April 2006 10:21 UTC](https://rubytalk.org/t/net-ftp-broken-on-os-x-tiger-ruby-1-8-2/26678/5 "2006-04-17T10:21:50Z")

</div>

> I'm quite aware. I compiled it myself so Rails would work....Any other  
> suggestions besides recompiling?

Try to use passive mode.

Guy Decoux

---

<div class="post-metadata">

**Author:** ![Guest19](https://avatars.discourse-cdn.com/v4/letter/g/dbc845/32.png) [@Guest19](https://rubytalk.org/u/Guest19)\
**Post date:** [17 April 2006 17:18 UTC](https://rubytalk.org/t/net-ftp-broken-on-os-x-tiger-ruby-1-8-2/26678/6 "2006-04-17T17:18:58Z")

</div>

ts wrote:

> \> I'm quite aware. I compiled it myself so Rails would work....Any  
> other  
> \> suggestions besides recompiling?
> 
> Try to use passive mode.
> 
> Guy Decoux

I've done that. Like I said, I can run the same code on my Debian box  
and it's broken. This is really infuriating......

> **···**
>
> --  
> Posted via [http://www.ruby-forum.com/\](http://www.ruby-forum.com/%5C).

---

<div class="post-metadata">

**Author:** ![Guest19](https://avatars.discourse-cdn.com/v4/letter/g/dbc845/32.png) [@Guest19](https://rubytalk.org/u/Guest19)\
**Post date:** [18 April 2006 03:32 UTC](https://rubytalk.org/t/net-ftp-broken-on-os-x-tiger-ruby-1-8-2/26678/7 "2006-04-18T03:32:13Z")

</div>

FYI: The same code tested works on my XP box & my Debian box with Ruby  
1.8.2 (all behind the same router, so it's not a firewall issue).

I guess recompiling the latest Ruby (1.8.4) is recommended on my OSX  
box? Will this break any of my installed gems like RMagick?

> **···**
>
> --  
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).
