code for start networking