Last active
November 29, 2017 21:49
-
-
Save LPiotr/e48e0e4164e85c966575e7b2e4c993b8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import socket | |
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
print(s) | |
server = 'www.decathlon.pl' | |
port = 80 | |
server_ip = socket.gethostbyname(server) | |
print(server_ip) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment