본문 바로가기

개발/Python

자신의 아이피 정보 얻기

import socket

print socket.gethostbyname(socket.gethostname())