set network private or public