Start socket from another part of program for service starting.