Added port auto-detect.
Added scanning ports automatically.