check network type then start peer