搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

Remote debugging not working

  • 無回覆
  • 0 有這個問題
  • 11 次檢視
more options

I'm trying to run Firefox in a vm and expose it for remote connections to access from puppeteer.

"firefox --headless --remote-debugging-port=9222 --remote-debugging-host=0.0.0.0 --remote-allow-hosts=x.x.x.x " - This is the command I'm using to launch the browser but the Firefox is listening on 127.0.0.1 only. And accepts only calls from the local machine. Despite many efforts I'm not able to make Firefox listens to my public ip or 0.0.0.0. This is the output I'm getting while launching

"*** You are running in headless mode. [GFX1-]: glxtest: Unable to open a connection to the X server WebDriver BiDi listening on ws://127.0.0.1:9222 [GFX1-]: RenderCompositorSWGL failed mapping default framebuffer, no dt"

With chrome I'm able to achieve the above use case. Chrome listens on 0.0.0.0 when adding the --remote-debugging-address "google-chrome --no-sandbox --headless --remote-debugging-port=9222 --remote-debugging-address=0.0.0.0".

I have limited control over the vm so I can't use ssh tunnel as well. Are there any solutions available to make Firefox listens to the public IP like chrome?

I'm trying to run Firefox in a vm and expose it for remote connections to access from puppeteer. "firefox --headless --remote-debugging-port=9222 --remote-debugging-host=0.0.0.0 --remote-allow-hosts=x.x.x.x " - This is the command I'm using to launch the browser but the Firefox is listening on 127.0.0.1 only. And accepts only calls from the local machine. Despite many efforts I'm not able to make Firefox listens to my public ip or 0.0.0.0. This is the output I'm getting while launching "*** You are running in headless mode. [GFX1-]: glxtest: Unable to open a connection to the X server WebDriver BiDi listening on ws://127.0.0.1:9222 [GFX1-]: RenderCompositorSWGL failed mapping default framebuffer, no dt" With chrome I'm able to achieve the above use case. Chrome listens on 0.0.0.0 when adding the --remote-debugging-address "google-chrome --no-sandbox --headless --remote-debugging-port=9222 --remote-debugging-address=0.0.0.0". I have limited control over the vm so I can't use ssh tunnel as well. Are there any solutions available to make Firefox listens to the public IP like chrome?

如果您還沒有帳號,您必須先登入帳號 來回覆文章。還沒有帳號的話,只能發問新問題