기타
OWASP / Starting WebGoat - Port 127.0.0.1:8080 is already in use 에러
너츠너츠
2022. 5. 22. 15:06
저의 경우 windows를 사용하고 있는데 이미 8080 포트를 사용하고 있다보니 실행이 안되더라구요!
그래서 명령어를 찾아보고 실행해봤더니?
java -jar webgoat.jar --server.port=8002
포트를 분명 8002로 설정했지만 8080으로 실행되는 것을 확인할 수 있었습니다.
다른 곳엔 답이 있겠지 하면서 검색해보니
https://github.com/WebGoat/WebGoat/issues/1173
`--server.port=9000` is not respected on Windows (both cmd as Powershell) · Issue #1173 · WebGoat/WebGoat
When starting WebGoat with the --server.port=9000 on Windows, WebGoat ignores the parameter and uses port 8080. This occurs on both the regular CMD as PowerShell. C:\Users\martijn\Downloads>java...
github.com
다들 안된다며 21년 11월 25일 issue를 올려주셨더라구요..
한참 고민하다가 Use environment value WEBGOAT_PORT to set a different value에 집중해보자 라는 마음에
WEBGOAT_PORT는 어떻게 설정하지? 라는 생각으로 검색했더니
set WEBGOAT_PORT = <원하는 포트>
set WEB_HSQLPORT= <원하는 포트>
java -jar webgoat.jar
이렇게 적용하면
실행되는 것을 확인하실 수 있습니다!
반응형