[ 1 ] def main(): [ 2 ] [ 3 ] [ 4 ] print(a) print(b) print(c) if __name__ == "__main__": main() [실행 결과]172.30.1.2b'\xac\x1e\x01\x02'172.30.1.2 [작성조건]1. 파이썬의 socket 라이브러리를 가져오는 코드를 작성하시오.2. 자신의 호스트명을 ip로 반환한 결과를 a 변수에 저장하는 코드를 작성하시오.3. a 변수의 ip 주소를 16로 변환하여 b 변수에 저장하는 코드를 작성하시오.4. b 변수의 ip 주소를 다시10진수롤 변환하여 c 변수에 저장하는 코드를 작성하시오. Solution1234import socketa = socket.gethostbyname(socket.gethostname..
New-Object System.Net.Sockets.TcpClient("1.1.1.1", 21) 파워쉘에서 FTP 포트 오픈 시에 1New-Object : Exception calling ".ctor" with "2" argument(s): "An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full cs 에러가 발생하였습니다. 1netstat -ancs netstat로 확인해보니, 무지하게 많은 포트가 TIME_WAIT 상태로 오픈되어있었고, 그로 인해서 더이상 포트를 열수 없는 상태였습니다.왜 이런 일이 발생했는지 조사해보니 윈도우즈 ..
- Total
- Today
- Yesterday
- configuration
- error
- deview
- check
- MariaDB
- PowerShell
- 명령어
- 예제
- Windows
- monitoring
- 외부링크
- code
- command
- Ansible
- httpd
- RESTful
- 번역
- Module
- client
- Python
- File
- Web
- engineering
- example
- Linux
- mysql
- apache
- limits
- 코드
- 이슈처리
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 |