Update main.cpp

Updation regarding network setup