• Join/Login
  • Business Software
  • Open Source Software
  • For Vendors
  • Blog
  • About
  • More
    • Articles
    • Create
    • SourceForge Podcast
    • Site Documentation
    • Subscribe to our Newsletter
    • Support Request
SourceForge logo
For Vendors Help Create Join Login
SourceForge logo
Business Software
Open Source Software
SourceForge Podcast
Resources
  • Articles
  • Case Studies
  • Blog
Menu
  • Help
  • Create
  • Join
  • Login
  • Home
  • Browse
  • ftp4che
  • Bugs

Active Mode Behind firewalls

Brought to you by: arnold_mad, kurt_tas
  • Summary
  • Files
  • Reviews
  • Support
  • Tickets ▾
    • Bugs
    • Patches
    • Feature Requests
  • News
  • Discussion
  • Code
Menu ▾ ▴
  • Create Ticket
  • View Stats

Group

Searches

  • Changes
  • Closed Tickets
  • Open Tickets

Help

  • Formatting Help

#26 Active Mode Behind firewalls

open
nobody
None
5
2007-06-16
2007-06-16
Anonymous
No

When using this library, I found a feature that needed to be added. It was the ability to use active connections behind a firewall where the external IP address lied outside of the box. What happens is the library sends a PORT command but sends the internal IP address which won't work (ie. PORT 10,10,249,70,12,34). Also, there is was no way to control which port to use since the network guys didn't want to open up every single port, exposing the box unnecessarily. So, I only had to change one file to add the functionality which was surprisingly easy. Basically, there are 4 functions (2 setters/2 getters) which make this so easy. 1 pair of functions deals with setting/getting the port address (ie. the external address) and the other sets/gets the port range. I added a little more internal functionality to the file on my work PC, so it's not here, but can be easily added as well. While I was testing the code, I sometimes got an error when connecting because the port was in use. So, I made the function try 5 times before actually throwing an error. In conclusion, I have attached the file for everyone's enjoyment.

Discussion

  • Nobody/Anonymous

    Nobody/Anonymous - 2007-06-16
     
    FTPConnection.java
    If you would like to refer to this comment somewhere else in this project, copy and paste the following link:

Log in to post a comment.

SourceForge
  • Create a Project
  • Open Source Software
  • Business Software
  • Top Downloaded Projects
Company
  • About
  • Team
  • SourceForge Headquarters
    1320 Columbia Street Suite 310
    San Diego, CA 92101
    +1 (858) 422-6466
Resources
  • Support
  • Site Documentation
  • Site Status
  • SourceForge Reviews
SourceForge logo
© 2026 Slashdot Media. All Rights Reserved.
Terms Privacy Opt Out Advertise
MongoDB Logo MongoDB