Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bind selenium to a specific IP - Possible?

Like many, we start selenium server via the following command:

java -jar selenium-server-standalone-2.21.0.jar

What we found is that this opens selenium up on 0.0.0.0:4444

Started SocketListener on 0.0.0.0:4444

[USER @ BOX ~]# netstat -na | grep LISTEN | grep 4444
tcp        0      0 :::4444                     :::*                        LISTEN

Is there any way to bind selenium to a specific ip (localhost)?

Thanks.

like image 217
anonymous-one Avatar asked May 15 '12 19:05

anonymous-one


1 Answers

Use the following command

    java -jar selenium-server-standalone-2.21.0.jar -host 192.168.1.100

where 192.168.1.100 is the IP address of the host

like image 133
retornam Avatar answered Oct 03 '22 01:10

retornam