a program to connect network automaticaly