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)