Implements basic network connecting