Added automatic port finding