JDK 7 With Netbeans: FTP Problem With Windows Firewall

Yesterday I installed Netbeans to my Windows PC and tried to add a remote PHP project. I want to say that 1 day before, I installed same version of Netbeans to my Mac and added the remote project, there were no issues.

But yesterday, I was unable to add remote project, no matter what I tried, it was unable to add, giving the error that there is no file on the remote folder. The connection was tested and working too.

So I tried to disable Windows Firewall and ta-dah! It worked. What confused me is that first time I opened Netbeans, it warned me that there might be issues with Windows Firewall and prompted the classic Firewall pop-up to me to either allow or block the application, and I allowed. But it still was unable to get through.

Some searches guided me that that was a problem with JDK 7 and some people downgraded to JDK 6 were able to connect FTP folder.

But I didn’t want to downgrade because it was loooking too unnecessary to me. I mean, this is JDK and Netbeans, seriously, no solutions?

Anyway, I was too sleepy to fight with firewalls or libraries at that moment, I slept. This morning, with a fresh brain, I found out that “The only difference between JDK7 and older releases is that the JDK is using IPv6 sockets when IPv6 is enabled and so IPv4-mapped IPv6 addresses are used. it may be that Windows or the firewall is not configured to allow IPv6 sockets.”(1)

And there was a command that worked for some people(2). I tried, it worked for me, too.

What you have to do is open MS-DOS with administrator rights and paste this, hit enter. Probably, it will work for you, too. Hope so.

netsh advfirewall set global StatefulFTP disable

(1) Source Link
(2) Source Link

27 Comments

Add a Link Button to Navigate Previous Page

In my Asp.Net web page, I had a trouble with navigating to the previous URL. I guess possibly because of postback, my linkbutton was navigating to the current page when I use this method:

Response.Redirect(Request["HTTP_REFERER"]);

I was unable to give previous page’s URL as a link simply, because there were a lot of data so it always was taking a while when I “navigated to the last page” with this method.

Then I saw this great JavaScript method and it works perfectly so far. All you have to do is to insert a Asp:LinkButton then add this to your Page_Load event:

lnkBtnPreviousPage.Attributes.Add("onClick", "javascript:history.back(); return false;");
Post a comment

How to Find Installed Microsoft SQL Server 2008 Product Serial Key

Recently I had to find my original product key for MS SQL Management Studio 2008 in order to make a new installation, but I lost the key information I stored somewhere. So I tried to get the key from already installed product. First, I found the query for getting the key for Studio 2005, then following comments were including the key for 2008, but in 164-byte binary value… After more Googling, I found this great post at Branch Bits and it was sharing a program that converts this binary value to product key! Anyway so I used it and installed successfully.
Here’s the query that gets the serial number in binary format:

use master
GO
exec xp_regread 'HKEY_LOCAL_MACHINE','SOFTWARE\Microsoft\Microsoft SQL Server\100\Tools\Setup','DigitalProductID'
GO

And this is the source link.

And here is the link that you can get the project and use it for converting serial number:
Branch Bits – Finding SQL Server 2008 product key from an installed instance

P.S. For those who needs to find key of 2005 instance may use the free software named ProduKey. It works well for me.
Product CD Key Viewer
For further info, please refer to this question:
Question: SQL Server 2005 cd Key

6 Comments