codex cli Fixing ‘An Attempt Was Made to Access a Socket in a Way Forbidden by Its Access Permissions’ (OS Error 10013)
Updated on
When running Codex CLI on Windows, you may encounter the following error:
An attempt was made to access a socket in a way forbidden by its access permissions. (os error 10013) 액세스 권한에 의해 숨겨진 소켓에 액세스를 시도했습니다. (os error 10013)
To resolve this, run Command Prompt as Administrator and execute: ``sh net stop winnat net start winnat
This workaround fixes the issue. However, you’ll need to repeat it every time you use /logout and /login. It seems to be a Codex CLI bug that only occurs on Windows.
windows 에서 codex cli 사용할때, os error 10013 에러가 발생하는 경우가 있다. “액세스 권한에 의해 숨겨진 소켓에 액세스를 시도했습니다. (os error 10013)”
이 경우에 cmd 를 관리자 권한으로 실행한 다음에
$ net stop winnat $ net start winnat
으로 실행하면 해결된다.
/logout 하고 /login 할때마다 계속해줘야한다. 아마도 windows 에서만 발생하는 codex cli 버그 인것 같다.