Update main.cpp

updation regarding network setup