From 9572ce96df11fafb26f9657e588238fb83d80877 Mon Sep 17 00:00:00 2001 From: dk06-creator <60873493+dk06-creator@users.noreply.github.com> Date: Thu, 1 Oct 2020 01:33:09 +0530 Subject: [PATCH] Add files via upload --- Get IP Address.py | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 Get IP Address.py diff --git a/Get IP Address.py b/Get IP Address.py new file mode 100644 index 00000000..9df31d99 --- /dev/null +++ b/Get IP Address.py @@ -0,0 +1,5 @@ +import socket + +hostname = socket.gethostname() +IPAddr = socket.gethostbyname(hostname) +print("My IP Address is :" + IPAddr)