Port Forwarding
For security reasons JCEF framework does not support accessing the remote debugging URL outside the “localhost” content.(i.e You cannot remote debug remote POS machine)
To enable accessing accessing this port from a remote host, use port forwarding to allow accessing the chromium remote debugging URL.
When React Fixed POS is up and running, it exposes React App through a http://localhost:9222/
Selenium uses this remote debugging port to execute automation. Since port 9222 is not externally accessible, run the appropriate command for your operating system in the command prompt to forward traffic to port 9223.
For Windows
netsh interface portproxy add v4tov4 listenaddress=0.0.0.0 listenport=9223 connectaddress=localhost connectport=9222
For Linux
For Linux, a SSH tunnel is created and the traffic is forwarded using the below command.
ssh -L 0.0.0.0:9223:localhost:9222 localhost -N