Microsoft MVP성태의 닷넷 이야기
글쓴 사람
정성태 (techsharer at outlook.com)
홈페이지
첨부 파일
 

(시리즈 글이 3개 있습니다.)
Windows: 221. Windows - Private/Public/Domain이 아닌 네트워크 어댑터 단위로 방화벽을 on/off하는 방법
; https://www.sysnet.pe.kr/2/0/13224

개발 환경 구성: 658. Windows에서 실행 중인 소켓 서버를 다른 PC 또는 WSL에서 접속할 수 없는 경우
; https://www.sysnet.pe.kr/2/0/13225

Windows: 253. 소켓 Listen 시 방화벽의 Public/Private 제어 기능이 비활성화된 경우
; https://www.sysnet.pe.kr/2/0/13440




소켓 Listen 시 방화벽의 Public/Private 제어 기능이 비활성화된 경우

이상하군요, 2대의 PC 중에 하나는 다음과 같이 선택을 할 수 없게 나옵니다.

port_firewall_blocked_1.png

Do you want to allow public networks to access this app?

Windows Firewall has blocked some features of ConsoleApp1 on all public networks

This setting is managed by your organization.

Allow access these types of networks.

실제로 "Allow" 버튼을 누를 수 없어 "Cancel"을 선택하면 "Public" 네트워크에 대해 연결을 제한하는 설정이 추가됩니다.

반면, 다른 하나는 아래와 같이 "Allow" 버튼이 활성 상태로 나옵니다.

port_firewall_blocked_2.png

참고로, 위의 창에 대해서는 이전에 다른 글에서 설명한 적이 있습니다.

Windows에서 실행 중인 소켓 서버를 다른 PC 또는 WSL에서 접속할 수 없는 경우
; https://www.sysnet.pe.kr/2/0/13225

그런데, 활성/비활성 차이는 도대체 어디서 온 것일까요? ^^;

두 대의 PC 간 차이를 보니까, "Windows Defender Firewall" 설정에서 "Customize settings for each type of network"를 이용해 어느 한 쪽에 대한 방화벽을 해제하면, 예를 들어 아래의 화면에서는 Private 네트워크에 대해서는 방화벽을 풀어버렸는데요,

port_firewall_blocked_3.png

이후부터는 "Allow" 버튼이 비활성화되었습니다. 또한, 위와 같은 상황에서는 제어판에서 다음과 같이 "Use recommended settings"라는 버튼이 있는 패널 영역이 보이는데요,

port_firewall_blocked_4.png
Update your Firewall settings

Windows Defender Firewall is not using the recommended settings to protect your computer.

"Use recommended settings" 버튼을 누르면 다시 "Private" 망에 대해서도 방화벽을 동작시키도록 바뀌게 됩니다. 어쨌든, 저런 식으로 방화벽을 모든 네트워크에 대해 설정해 두어야 나중에 (처음 실행하는) Socket Listen 동작에서 네트워크 선택 옵션이 활성화됩니다.





[이 글에 대해서 여러분들과 의견을 공유하고 싶습니다. 틀리거나 미흡한 부분 또는 의문 사항이 있으시면 언제든 댓글 남겨주십시오.]







[최초 등록일: ]
[최종 수정일: 11/13/2023]

Creative Commons License
이 저작물은 크리에이티브 커먼즈 코리아 저작자표시-비영리-변경금지 2.0 대한민국 라이센스에 따라 이용하실 수 있습니다.
by SeongTae Jeong, mailto:techsharer at outlook.com

비밀번호

댓글 작성자
 




... 121  122  123  124  125  126  127  128  [129]  130  131  132  133  134  135  ...
NoWriterDateCnt.TitleFile(s)
2921정성태5/9/201534985개발 환경 구성: 266. 인텔에서 구현한 최대 절전 모드 기능 - Intel® Rapid Start Technology
2920정성태5/9/201525702오류 유형: 290. 디스크 관리자의 파티션 축소 시, There is not enough space available on the disk(s) to complete this operation.
2919정성태5/9/201525836오류 유형: 289. Error: this template attempted to load component assembly 'NuGet.VisualStudio.Interop, ...'
2918정성태5/9/201544906Windows: 111. 복구(Recovery) 파티션 삭제하는 방법 [3]
2917정성태5/9/201535283오류 유형: 288. .NET Framework 4.6이 설치된 경우 "Intel® Rapid Storage Technology (Intel® RST) RAID Driver"가 설치 안 되는 문제 [5]
2916정성태5/9/201536535오류 유형: 287. 레지스트리 권한 오류 - Cannot edit [Registry key name]: Error writing the value's new contents.
2915정성태5/9/201536452개발 환경 구성: 265. TrustedInstaller 권한으로 프로그램 실행시키는 방법 [11]
2914정성태5/9/201533542DDK: 7. 정식 인증서가 있는 경우 Device Driver 서명하는 방법 [2]
2913정성태4/30/201530662.NET Framework: 511. Build 2015 행사에서 소개된 (맥/리눅스/윈도우 용 무료) Visual Studio Code 개발 도구 [8]
2912정성태4/29/201526135오류 유형: 286. VirtualBox에 Windows 8/2012 설치 시 "Error Code: 0x000000C4" 오류 발생
2911정성태4/29/201524704오류 유형: 285. Visual Studio 2015를 제거한 경우 Microsoft.VisualStudio.Web.PageInspector.Loader 어셈블리를 못 찾는 문제 [2]
2910정성태4/29/201528539오류 유형: 284. System.TypeLoadException: Could not load type 'System.Reflection.AssemblySignatureKeyAttribute' from assembly [1]
2909정성태4/29/201524571오류 유형: 283. WCF 연결 오류 - Expected record type 'PreambleAck'
2908정성태4/29/201532555오류 유형: 282. 원격에서 SQL 서버는 연결되지만, SQL Express는 연결되지 않는 경우
2907정성태4/29/201523201.NET Framework: 510. 제네릭(Generic) 인자에 대한 메타데이터 등록 확인
2906정성태4/28/201525368오류 유형: 281. DebugView로 인한 System.Diagnostics.Trace.WriteLine 멈춤(Hang) 현상
2905정성태4/27/201526452오류 유형: 280. HttpResponse.Headers.Add에서 "System.PlatformNotSupportedException: This operation requires IIS integrated pipeline mode." 예외 발생
2904정성태4/27/201530640DDK: 6. ZwTerminateProcess로 프로세스를 종료하는 Device Driver 프로그램 [2]파일 다운로드1
2903정성태4/20/201524788Windows: 110. (무료) 마이크로소프트 온라인 강좌 소개 - Azure에서 제공하는 계정 관리 서비스
2902정성태4/16/201531150Windows: 109. (무료) 마이크로소프트 온라인 강좌 소개 - Active Directory 이해
2901정성태4/15/201527694Windows: 108. (무료) 마이크로소프트 온라인 강좌 소개 - Windows Server 2012 R2 주요 기술 (Hyper-V 관점)
2900정성태3/24/201526402오류 유형: 279. robocopy 오류 - The file cannot be accessed by the system [4]
2899정성태3/24/201534290개발 환경 구성: 264. Visual Studio 2013 솔루션을 2015로 마이그레이션
2898정성태3/24/201525295개발 환경 구성: 263. SharePoint 2013을 Windows Server 2012 R2에 설치
2897정성태3/18/201523381오류 유형: 278. LoadLibrary("...") failed - Invalid access to memory location.
2896정성태3/18/201523156VC++: 90. Visual Studio 2013에서 Visual Basic 6용 ATL Control 제작
... 121  122  123  124  125  126  127  128  [129]  130  131  132  133  134  135  ...