0

I am trying to start a phantomjs node on a virtual machine to connect to my own computer which hosts the hub. I have gotten a generic node set up externally (5 instances of firefox, chrome and one instance of IE). When I try and set up a phantomjs node however, it registers fine from the command prompt, but when I go to the grid console, the following message is displayed:

DefaultRemoteProxy unknown version,Connect to failed: [myIp] Connection refused: connect

Does anyone have any experience with this?

Jay
  • 61
  • 2
  • 14
  • What commands are you sending to create the node and link to your hub? – jaredgilmore Jun 08 '17 at 21:29
  • This may be port forwarding issue. Check the port is open on both machine for inbound. – Murthi Jun 09 '17 at 04:12
  • I am using the following command to create the node and link to my hub: `phantomjs --webdriver 5558 --webdriver-selenium-grid-hub=http://hubIP:5786 --ignore-ssl-errors=true` – Jay Jun 09 '17 at 12:40
  • @diieu Both ports are open, would that be causing a possible port forward issue? I am still running into issues with this. – Jay Jun 09 '17 at 19:54
  • @Jay so if you go to your http://hubIP:5786 you see the Hub console? Is there anything printed out to the terminal when trying to create the phantomjs node? The command you posted to create a node looks right. What are you sending to create the hub? – jaredgilmore Jun 09 '17 at 23:24
  • @diieu In my comment above, that is what I am sending to create the hub. Yes it shows the node on the console, but it gives the error message that I provided in the question – Jay Jun 12 '17 at 12:40

1 Answers1

0

Connection refused when phantomjs is run on different machine than selenium hub

Referenced this question... Basically had to add the IP of my node machine to the --webdriver param in the command line...

Jay
  • 61
  • 2
  • 14