Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not connect with different port #98

Open
wallace7souza opened this issue Sep 9, 2019 · 0 comments
Open

Can not connect with different port #98

wallace7souza opened this issue Sep 9, 2019 · 0 comments

Comments

@wallace7souza
Copy link

wallace7souza commented Sep 9, 2019

Hi guys!
I'm using this pm2 to make chrome available as service.

pm2 start google-chrome --name=chrome-9223
--interpreter none
--
--disable-translate
--disable-extensions
--disable-background-networking
--safebrowsing-disable-auto-update
--disable-sync
--metrics-recording-only
--disable-default-apps
--no-first-run
--remote-debugging-port=9223

But for somereason, if I run this code

const browser = new HeadlessChrome({ headless: true, launchChrome: false, chrome: { host: 'localhost', port: 9223, remote: true, }, browserlog: true });

Doesn't work! the console for this error show me this:
Error: connect ECONNREFUSED 127.0.0.1:9222
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1113:14)
errno: 'ECONNREFUSED',
code: 'ECONNREFUSED',
syscall: 'connect',
address: '127.0.0.1',

This work with port 9222 but any port that I try put there will always try to run in 9222. My idea is run three versions of chrome running in different ports but I don't know if is possible.

I'm using the version 4.3.10.

Thanks for any help!
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant