잡지식
프로토콜 tcp 포트 제외 범위
kyeongjun-dev
2021. 4. 3. 20:08
netsh interface ipv4 show excludedportrange protocol=tcp
cmd나 window termianl(powershell)에 이렇게 입력하면
프로토콜 tcp 포트 제외 범위
시작 포트 끝 포트
---------- --------
2869 2869
5620 6711
50000 50059 *
* - 관리 포트 제외입니다.
이렇게 뜨는데, 5627포트 (rabbitmq)를 사용해야 해서 포트 할당이 안된다.
$ docker run -d -p 5672:5672 --name rabbit ra
bbitmq
c85b0721aa563365340323458afdf6df8617d9c7e4fed48eb3f27d11d8c52664
docker: Error response from daemon: Ports are not available: listen tcp 0.0.0.0:5672: bind: An attempt was made to access a socket in a way forbidden by its access permissions.
이렇게 오류가 뜬다. 이걸 해결하려면 cmd나 powershell을 관리자권한으로 실행해서
net stop winnat
이 명령어를 수행한다.
superuser.com/questions/1579346/many-excludedportranges-how-to-delete-hyper-v-is-disabled
Many excludedportranges how to delete - hyper-v is disabled
Since the Windows update 2004 I am fighting with many programs and tools that can't bind to certain ports. A bit research I stumbled across: netsh interface ipv4 show excludedportrange protocol=tc...
superuser.com
성공!! wsl2가 만져줘야할 부분이 많아서 그렇지 편하긴 하다.... ㅠ_ㅠ