Home
About
HelperOfCoders
Subscribe Us
Home-icon
About Me...
Home
How to Get Host name and ip address using python in 4 lines of code | Python projects|
How to Get Host name and ip address using python in 4 lines of code | Python projects|
priyansh jain
July 27, 2020
Hey guys in this video i am gonna tell you how you can get ip address and host name using python ..
Source code...
#required module -inbuilt module
import socket
#for getting host name
host_name = socket.gethostname() print(host_name)
#for ip address
ip_address = socket.gethostbyname(host_name) print(ip_address)
Post a Comment
0 Comments
ATM machine project in Python | python projects
August 18, 2020
How To Download Entire Post Of A Instagram Profile Using Python | Python Projects | instaloader
August 10, 2020
How to Convert Audio to Text using python , Python Projects
July 29, 2020
How to Get Current gold price using Python | Python projects
August 24, 2020
How To Create GUI Calendar using Python , Python Project
August 30, 2020
About Me
priyansh jain
i am a programmer and youtuber . i love to teach programming .
View my complete profile
Contact Form
Name
Email
*
Message
*
0 Comments