6

I'm trying to set netBeans remote project and I'm having pretty much trouble with it. I've started a PHP Application from Remote Server and in the last confirmation step it throws error on me.

No files available for download. Try to check Passive mode in the remote configuration.

In the log output it fails there:

> 215 UNIX Type: L8
> PORT 192,168,5,217,196,73
> 500 Illegal PORT command.

Did anyone have same problem with setting up remote connection? Please help.

Martin Svoboda
  • 297
  • 1
  • 4
  • 18

7 Answers7

6

To establish an FTP connection, choose either of the options below:

  • Turn off the Windows firewall.
  • Configure Windows Firewall for a passive mode FTP server as follows:

    1. Open an Administrator command-prompt.
    2. Click Start > All Programs > Accessories.
    3. Right-click Command Prompt, and then click Run as Administrator.
    4. Run the following command:

      netsh advfirewall firewall add rule name=FTPService action=allow service=ftpsvc protocol=TCP dir=in
      
    5. Disable stateful FTP filtering so that the firewall does not block any FTP traffic:

      netsh advfirewall set global StatefulFTP disable
      
Tunaki
  • 132,869
  • 46
  • 340
  • 423
imran
  • 82
  • 1
  • 3
5

This seems to be the top answer whenever anyone is looking for how to set netbeans into passive mode. Despite the advice always being "set the ftp into passive mode" for those using Mac OS and Netbeans you may never seem to find it.

  1. Right click on the project
  2. Select Properties
  3. Select Run Configurations
  4. Select Manage
  5. Select your_ftp_connection on the left column
  6. Scroll down

NetBeans FTP Connection

Kennedy Nyaga
  • 3,455
  • 1
  • 26
  • 25
3

The only way I fixed this was to switch to using SFTP. This obviously requires that you've set up SFTP (FTP over SSH) access to your server.

In the Run Configuration, when it asks you for the Remote Connection:

  1. Click on 'Manage'
  2. Click on 'Add...'
  3. Select SFTP as the connection type
  4. Fill in the rest of the details as if it were a normal FTP connection.
icc97
  • 11,395
  • 8
  • 76
  • 90
3

Turning plain FTP Netbeans connection into passive mode solved the problem for me.

snowindy
  • 3,117
  • 9
  • 40
  • 54
2

Please Check Passive Mode; i had faced the same issue; after checking it; resolve this issue.

Mudaser Ali
  • 3,989
  • 3
  • 25
  • 27
0

There is no way to find the passive mode in a OSX. It's a Netbeans bug... So I won't be able to develop on netbeans using my Mac. Already tried to download last version.

Ivan
  • 1
0

For me the solution was to check Passive Mode on the client and to do following things on the server side

in /etc/vsftpd.conf

pasv_enable=Yes
pasv_max_port=10100
pasv_min_port=10090

then in terminal

iptables -I INPUT -p tcp --destination-port 10090:10100 -j ACCEPT
service iptables save
service vsftpd restart
Den
  • 1,456
  • 16
  • 17