파이썬 자신의 로컬 IP알아내기
import socket
def ipcheck():
return socket.gethostbyname(socket.getfqdn())
print(ipcheck())
'Python > Python for Windows' 카테고리의 다른 글
[Python] Check shared folder of Windows operating system using subprocess and regular expression (0) | 2018.05.04 |
---|---|
[Python] SQLite 메모리DB를 활용한 파이썬 IIS 로그파서 (0) | 2018.04.27 |
[Python] xcopy DOS명령어를 조합한 증분 백업 (0) | 2018.04.20 |
[Python] 윈도우 서버에서 SMTP서버로 메일 발송 (2) (0) | 2018.04.18 |
zipfile을 이용한 특정폴더에 있는 모든 파일 압축 (0) | 2018.04.18 |
[Python] 윈도우 netstat 명령어를 활용하여 아웃바운드 IP와 포트 추출 (0) | 2018.04.15 |
[Python] Counters를 이용한 IIS 웹 로그 IP주소 빈도 수 추출 (0) | 2018.04.13 |
[Python] 하위 디렉토리 파일크기와 라인 수 추출 (0) | 2018.04.12 |