forked from PavanAnanthSharma/ComputerName-IP-Using-Python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ComputerName&IPAddress.py
20 lines (19 loc) · 1.29 KB
/
ComputerName&IPAddress.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
print("_________________________________________________________________________________________________")
print("")
print(" 8888888888888 88 88 8888888888888 88 88 8888888888888 888 888")
print(" 888 888 8888 88 888 888 8888 88 8888888888888 888 888")
print(" 888 888 88 88 88 888 888 88 88 88 888 888 888")
print(" 888 888 88 88 88 888 888 88 88 88 888 888888888888988")
print(" 8888888888888 88 88 88 8888888888888 88 88 88 888 888888888888888")
print(" 888 888 88 88 88 888 888 88 88 88 888 888 888")
print(" 888 888 88 8888 888 888 88 8888 888 888 888")
print(" 888 888 88 888 888 888 88 88 888 888 888")
print("_________________________________________________________________________________________________")
print("")
import socket
hostname = socket.gethostname()
IPAddr = socket.gethostbyname(hostname)
print("Your Computer Name is: " + hostname)
print("")
print("Your Computer IP Address is: " + IPAddr)
print("")