Get IP Address in Python Naim 04:08 IP Address # Python Program - Get IP Addressimport socket;print("Want to get IP Address ? (y/n): ");check = input();if check == 'n': exit();else: print("\nYour IP Address is: ",end=""); print(socket.gethostbyname(socket.gethostname())); Learn More : Share this Share on FacebookTweet on TwitterPlus on Google+
If the answers is incorrect or not given, you can answer the above question in the comment box. If the answers is incorrect or not given, you can answer the above question in the comment box.