Using FTP from within NetBeans

I ran into a small problem the other day. The code I had written and tested on my local XAMPP server worked fine, but once uploaded to my hosting server, it did not. I started doing the usual debugging – make a change, ftp to server, refresh browser.

Then I though – hell, there must be an easier way. And there was – using NetBeans (my IDE of choice) I was able to set up a FTP connection to my hosting server. This allowed me to make the changes and simply upload straight from NetBeans to the host.

I know it may only seem like a small amount of time saved – but it does allow for an extra cup of coffee at the end of the day.

 

So briefly here is how I did it.

Select the project you wish to FTP to the server.

image_1

 

 

Rich-click and select ‘Properties’.

image_2

 

 

Once the properties page pops up, select the ‘Run Configuration’ option.

image_3

 

 

Click the ‘Run As’ drop-down and select ‘Remote Web Site (FTP, SFTP).

image_5

 

 

The properties pop-up will reload adding a few more options to the screen. Click the ‘Manage’ button.

image_6

 

 

A list of your current FTP connections will be displayed. Click the ‘Add’ button to add a new connection.

image_7

 

 

Enter a name for the connection and click ‘OK’.

image_8

 

 

Complete the necessary details allowing you to connect to the FTP server.

image_9

 

 

Click the ‘Test Connection’ button to test your connection. Hopefully you will not see the screen below.

image_10

 

With the connection successfully created, you can do a test upload. Right-click on the file you wish to FTP and select the ‘Upload’ option.

image_11

 

 

The Actions panel will display the progress and status of the transaction.

image_12

2 thoughts on “Using FTP from within NetBeans

Leave a Reply

Your email address will not be published. Required fields are marked *