parse Port encoding