#include<conio.h>
      #include<stdlib.h>
      
      clrscr();
      system("C:\\Windows\\System32\\ipconfig");
      // if linux
      system("shutdown -P now");
      getch();
      

      C language logo
      Get ip address

      Codiga's C Recipes

      Get IP address using OS built-in tools

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.