无法连接到在AWS EC2上运行的Selenium Grid [英] Unable to connect to Selenium Grid running on AWS EC2
问题描述
我有一个Selenium Grid并在AWS EC2实例上运行.我想使用Java从本地计算机连接到此服务器,以通过RemoteWebDriver触发测试,但是,无论是通过SSH还是公用IP,我都无法连接到服务器.
I have a Selenium Grid up and running on an AWS EC2 instance. I would like to connect to this from my local machine using Java to fire off my tests via a RemoteWebDriver, however, I'm unable to connect to the server be it through SSH or the Public IP.
例如,我需要访问端口 4444 上的实例,网址为 http://123.456.78.910:4444/wd/hub 然后,这需要建立连接并接收我的测试.
For example I need to access the instance on port 4444 for a url of http://123.456.78.910:4444/wd/hub this would then need to establish a connection and receive my tests.
每当我尝试使用公共IP时,我都会超时.
Whenever I try to use the Public IP I simply get a time-out.
任何帮助将不胜感激.
推荐答案
您正在超时,因为您的端口4444在EC2安全组中被阻止.检查以下内容,您是否已将该规则添加到EC2安全组中.您可以添加0.0.0.0/0,但是我建议您只添加IP,因为您将是唯一从本地访问该端口并提高安全性的IP.
You are getting a time out because your port 4444 is blocked in the EC2 security group. Check below you have add that rule to you EC2 security group. You can either add 0.0.0.0/0 but I will suggest just add your IP as you will be the only one to access that port from your local and for better security.
这篇关于无法连接到在AWS EC2上运行的Selenium Grid的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!