Updated port allocation to dynamic in app js