본문 바로가기

개발자 모드/파이썬(python)

컴퓨터 내부 IP 알아내기 #1

728x90
import socket

in_addr = socket.gethostbyname(socket.gethostname())

print(in_addr)

 

728x90