MacKio
Home
Basics
How To
News
Programming
Ubuntu
शनिवार, 4 मार्च 2017
Easy Way to Find IP Address using Python Language
On 1:30 pm
with
0 Comment
import socket
try:
s = socket.socket(socket.AF_INET,socket.SOCK_DGRAM)
s.connect(("gmail.com",80))
print "IP:"+s.getsockname()[0]
s.close()
except Exception:
p = "INTERNET IS NOT WORKING"
print p
0 comments:
एक टिप्पणी भेजें
नई पोस्ट
पुरानी पोस्ट
मुख्यपृष्ठ
Blogger
द्वारा संचालित.
Home
Category #1
Category #2
Category #3
Category #4
Category #5
Category #6
Category #7
Connect With Us
Facebook
Twitter
Google+
Linkedin
Pinterest
RSS
Popular Posts
Python Code To Find IP Address
import socket try: s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) s.connect(("gmail.com", 80)) p...
apt-get install काम ना करे तोह ??
अगर मुझे कोई software या फिर कोई application install करना है तोह apt-get install software_name या फिर sudo apt-get install softwa...
solve your ubuntu terminal error problem (hindi)
ubuntu sudo apt-get update terminal error... by mayur1999
Ubuntu में google chrome कैसे install करे
ubuntu sudo apt-get update terminal error problem
python pyQt5 GUI code to find IP address
to run this code , need to install 1> python3 link > https://www.python.org/downloads/ 2> pyqt5 link > http://py...
TOP 10 Python Programming Tricks
७० सेकेंड में linux हैक (linux login hack within 70 second)
if you enables Encryption of your hard drive at time of Linux installation then you are in big trouble At time of installation set...
Kaspersky ला रहा है नयी ऑपरेटिंग सिस्टम
Kaspersky कंपनी साइबर सिक्योरिटी और anti-viruses बनानेका काम करती है। Kaspersky का antivirus आप उनके वेबसाइट पर जा के डाउनलोड कर करते...
ubuntu में notepad plus plus कैसे install करे ?
notepad plus plus install करने के लिए १. wine नाम का application install कीजिये उसके लिए terminal ओपन कीजिये और टाइप कीजिये ...
Labels
#basics
#hindi
#howto
#kaspersky
#Netflix
#news
#operatingsystem
#os
#programming
#python
#ubuntu
tricks
© 2014
MacKio
All Rights Reserved. Designed By
BlogTipsNTricks
.
0 comments:
एक टिप्पणी भेजें