Can't make firefox accept remote connection from different host

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 --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?

Hi! remote-debugging-host is not supported on Firefox, but we probably don’t support 0.0.0.0 for security reasons.
Could you file an enhancement request on Bugzilla so that we can follow up on this? https://bugzilla.mozilla.org/enter_bug.cgi?product=Remote+Protocol&component=WebDriver+BiDi

Thanks!

Thank you for the reply. I have raised the enhancement request-https://bugzilla.mozilla.org/show_bug.cgi?id=1940209. Looking forward to have this feature in Firefox soon. :slightly_smiling_face: