find vaild port and create server