auto assign socket port