Skip to content

Instantly share code, notes, and snippets.

@LPiotr
Last active November 29, 2017 21:49
Show Gist options
  • Save LPiotr/e48e0e4164e85c966575e7b2e4c993b8 to your computer and use it in GitHub Desktop.
Save LPiotr/e48e0e4164e85c966575e7b2e4c993b8 to your computer and use it in GitHub Desktop.
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