Skip to content

Commit 56a263e

Browse files
committed
added findIPAddress.py
1 parent d8fa6d7 commit 56a263e

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

FindIPAddress/FindIPAddress.py

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import socket
2+
hostname = socket.gethostname()
3+
IPAddr = socket.gethostbyname(hostname)
4+
print("Your Computer Name is:" + hostname)
5+
print("\nYour Computer IP Address is:" + IPAddr)

README.md

+6
Original file line numberDiff line numberDiff line change
@@ -85,3 +85,9 @@ Happy scripting!
8585

8686
#### Requirements :
8787
Python 3.5+
88+
89+
### FindIPAddress :
90+
Find your host name and IP address.
91+
92+
#### Requirements :
93+
Python 3.5+

0 commit comments

Comments
 (0)