Proper port assignment