port opening error
port selection logic
logging