Pages

Search This Blog

Tuesday, August 24, 2010

How to handle Selenium is already running on port 4444

When we run selenium RC test cases sometimes we faces this issue saying "java.net.BindException: Selenium is already running on port 4444. Or some other service is." When you check the port 4444 no service is running. We change the port and run the program even that too is not working.
In these cases we need to shutdown the selenium server on this port.
Use below command to shut down the server.

http://localhost:4444/selenium-server/driver/?cmd=shutDownSeleniumServer

If selenium server is already running on port 4444 then it will shut down the server and says
OKOK
if selenium is not running on this port 4444 then by hitting above url will give you
"Unable to connect"
Now you can run your test cases i am sure will run smoothing.

46 comments:

  1. Thanks! It works! :)
    Alex (Ukraine)

    ReplyDelete
  2. This comment has been removed by the author.

    ReplyDelete
  3. it reallY works! :) thanx a lot! :)

    ReplyDelete
  4. Thanks it worked.... :)
    Rajesh (India)

    ReplyDelete
  5. Hi,

    Please help. I am still facing this issue:
    "Selenium is already running on port 4444. Or some other service is."

    I use Selenium RC, TestNG and Java.

    Regards,
    Aruna

    ReplyDelete
  6. Hi,

    Its works fine.
    But i have facing similar issue while running suite using XML file. The intersting thing here is that, if we start selenium server manualy suite running fine. But if we start server from the code[selenium.boot()], I am getting "Selenium is already running on port 4444. Or some other service is."
    after the first class in the suite. Could you please help me to overcome this?

    ReplyDelete
  7. Thanks. It was a complete mystery to me how to solve this problem. Your url is very useful

    ReplyDelete
  8. I am trying to run a test suite in XML.. but it says "Selenium is already running on port 4444. Or some other service is" . I cannot overcome from this issue. Can you please help me out...

    ReplyDelete
  9. thanks a lot! May God bless you!

    ReplyDelete
  10. Thanks. It works for me.

    ReplyDelete
  11. Works great!! Thanks for the post!!

    ReplyDelete
  12. thank u soooooooooooooooo muchhhhhhhhhhhhhhhhhhhhhhh

    ReplyDelete
  13. hello there and thank you for your info ? I've definitely picked up anything new from right here. I did however expertise a few technical issues using this website, as I experienced to reload the site lots of times previous to I could get it to load correctly. I had been wondering if your web host is OK? Not that I'm complaining, but sluggish loading instances times will
    sometimes affect your placement in google and can damage your high-quality score if advertising and marketing with Adwords.
    Anyway I am adding this RSS to my e-mail and could look out for a lot more
    of your respective fascinating content. Ensure that you update this again very soon.


    my site what is the best acne treatment over the counter

    ReplyDelete
  14. Hi there, every time i used to check weblog posts here in
    the early hours in the break of day, as i like to
    learn more and more.

    Also visit my blog post green Coffee bean extract gnc

    ReplyDelete
  15. Hi there mates, its enormous article on the topic
    of cultureand entirely defined, keep it up all the time.



    my site the original source

    ReplyDelete
  16. Definitely believe that which you stated. Your favorite reason appeared to be on the
    web the easiest thing to be aware of. I say to you, I certainly get irked
    while people think about worries that they just don't know about. You managed to hit the nail upon the top and also defined out the whole thing without having side effect , people can take a signal. Will likely be back to get more. Thanks

    my page ... houses

    ReplyDelete
  17. Its like you read my mind! You seem to know so much
    about this, like you wrote the book in it or something.
    I think that you could do with a few pics to drive the message home a
    little bit, but other than that, this is excellent blog.

    A great read. I'll certainly be back.

    Also visit my webpage: view homepage

    ReplyDelete
  18. Fantastic goods from you, man. I have remember your stuff previous to and
    you're simply too fantastic. I really like what you've
    received here, really like what you're saying and the best way by which you are saying it. You are making it enjoyable and you still care for to stay it wise. I cant wait to read much more from you. This is actually a tremendous web site.

    My homepage :: Buy Commercial Property evesham (worcestershire)

    ReplyDelete
  19. go to task manager and kill java.exe ...

    ReplyDelete
  20. Hello, I enjoy reading all of your article. I wanted to write
    a little comment to support you.

    Also visit my web site; cellulite treatment cream

    ReplyDelete
  21. rosacea specialist Green Sulphur Springs

    My homepage :: rosaceago.com

    ReplyDelete
  22. Awesome!! thanks :)

    ReplyDelete
  23. Thanks, this helped me!

    ReplyDelete
  24. It's working. Thanks

    ReplyDelete
  25. From My search…Creating Experts provides Best SAP MM training with real time projects assistance. Most of the modules are equipped with advance level topics which the student can learn from the basics to the advance level stage. They also provide placement assistance in leading MNC companies across the globe according to the current requirements.
    And these are the Best SAP MM training institute which provides Real Time Hands on Training…
    Codedion Technologies-9003085882
    Creating Experts-8122241286
    They also providing both Classroom/Online Training

    ReplyDelete
  26. It does not seem to work anymore

    ReplyDelete
  27. Great thoughts you got there, believe I may possibly try just some of it throughout my daily life.
    Devops Training courses
    python Training in chennai
    Devops Training in Bangalore

    ReplyDelete
  28. This is quite educational arrange. It has famous breeding about what I rarity to vouch.
    Colossal proverb. This trumpet is a famous tone to nab to troths. Congratulations on a career well achieved.
    This arrange is synchronous s informative impolite festivity to pity. I appreciated what you ok extremely here.


    Selenium interview questions and answers
    Selenium Online training
    Selenium training in Pune
    selenium training in USA
    selenium training in chennai

    ReplyDelete
  29. Thank you for this post. Thats all I are able to say. You most absolutely have built this blog website into something speciel. You clearly know what you are working on, youve insured so many corners.thanks
    Python Online training
    python Course institute in Chennai
    Python Course institute in Bangalore

    ReplyDelete
  30. http://localhost:4444/selenium-server/driver/?cmd=shutDownSeleniumServer how to run this command

    ReplyDelete