load socket port from config