I need seleniumGrid to be accessible via localhost ( and instead of that, it is being offered in address:port

What command option can I use to make it use localhost? The command I'm using, right now is:

java -jar selenium-server-4.2.2.jar standalone

I'm using MacOS, 12.5 (Monterey)

1 Answer 1


You can use the host flag:

java -jar selenium-server-standalone-4.2.2.jar -host
  • It looks like selenium-server-standalone-4.2.2.jar is not available anymore Do you know how to get it? Jul 27 at 11:27
  • If the official Selenium site doesn't provide this file, there was probably a big reason to stop the release. I would use the most recent version or open an issue on Selenium's GitHub repo. Either way, this is not related to the question itself. If you find the answer satisfactory, I would suggest marking it as Answered, to signal that this answer is the correct one. Jul 31 at 11:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.