added code to do port changes.

white list changes and port no. case solutions are added.