Get port from process