Update Network interface OffOn

Changed the function to retrieve the NetConnectionID to one of I wrote on my own, its my very first :D. The previous one was borrowed from the forum.