← 문제 라이브러리
Network 입문 3분

Connection refused와 Connection timed out은 무엇이 다른가

검수된 문제무료
시나리오

두 DB 서버의 5432 포트를 점검했더니 결과가 서로 다릅니다.

단서
점검 결과
$ nc -vz db-a 5432
nc: connect to db-a port 5432 (tcp) failed: Connection refused
$ nc -vz -w 10 db-b 5432
nc: connect to db-b port 5432 (tcp) timed out: Operation now in progress