Added port for HDHR discovery
fix for file redirection permission