It's not your app, it's Chrome.
From https://superuser.com/a/188012/220530:
Right Click on Chrome shortcut >> Properties >>
Then Append --explicitly-allowed-ports=xxx to shortcut target
Example:
C:\Documents and Settings\User\Local Settings\Application Data\Google\Chrome\Application\chrome.exe --explicitly-allowed-ports=6666