Selenium gives error while launching

427 views
Skip to first unread message

kuba11g

unread,
Aug 16, 2021, 4:31:42 AM8/16/21
to Selenium Users
Hey I got question,
When I'm starting app Selenium gives me error like this

OpenQA.Selenium.WebDriverException: Unexpected error. System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 127.0.0.1:55628 at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception) --- End of inner exception stack trace --- at System.Net.HttpWebRequest.GetRequestStream(TransportContext& context) at System.Net.HttpWebRequest.GetRequestStream() at OpenQA.Selenium.Remote.HttpCommandExecutor.MakeHttpRequest(HttpRequestInfo requestInfo) at OpenQA.Selenium.Remote.HttpCommandExecutor.Execute(Command commandToExecute) at OpenQA.Selenium.Remote.DriverServiceCommandExecutor.Execute(Command commandToExecute) at OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters) at OpenQA.Selenium.Remote.RemoteWebDriver.UnpackAndThrowOnError(Response errorResponse) at OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters) at OpenQA.Selenium.Remote.RemoteWebDriver.set_Url(String value) at OpenQA.Selenium.Remote.RemoteNavigator.GoToUrl(String url) at InstagramBotz.InstagramPanel.FollowUserFollowers(String userUrl, Int32 amount, Int32 time)

Could someone help me to fix this error? I will appreciate it.

Gunashree G

unread,
Sep 15, 2021, 1:00:44 AM9/15/21
to Selenium Users
There could either be a firewall blocking the connection or the process that is hosting the service is not listening on that port. This could be possible if it is not running at all or because it is listening on a different port. When you begin the process, try netstat -anb (requires admin privileges) to verify that it is running and listening on the expected port. You can get better insights from the selenium testing training.

Disclaimer: The information in this email and any attachments contains proprietary, confidential and legally privileged information and therefore is intended only for the person(s)/recipient(s) named in the message header. Further all such proprietary, confidential and privileged information is owned by Brain4ce Education Solutions Private Limited operating through its brand Edureka. 

If you are not the addressee/recipient of this message, you shall not copy, forward, print, distribute, disclose or use any part of this message. If you have received this message inadvertently, please immediately notify the sender about the same and delete this message and all copies from your system.

Message has been deleted

Sarang S

unread,
Apr 1, 2022, 7:24:05 PM4/1/22
to Selenium Users
It will be because your Internet service provider might be blocking your access to the port. Kindly contact your internet service provider and ask them about the same and unblock from their end so that you can go ahead with your connection request. Once you are done with contacting your ISP, restart your selenium software. Visit for more - Selenium testing training.

On Monday, August 16, 2021 at 2:01:42 PM UTC+5:30 kubago...@gmail.com wrote:

poobathy r

unread,
Apr 1, 2022, 9:16:36 PM4/1/22
to seleniu...@googlegroups.com
Hi 

Could you paste the html after launching through web driver and sometimes it behaves like this 

Try to clear the cookies and caches 

On Thursday, March 31, 2022, 'Sarang S' via Selenium Users <seleniu...@googlegroups.com> wrote:

It will be because your Internet service provider might be blocking your access to the port. Kindly contact your internet service provider and ask them about the same and unblock from their end so that you can go ahead with your connection request. Visit for more - Selenium testing training.
On Monday, August 16, 2021 at 2:01:42 PM UTC+5:30 kubago...@gmail.com wrote:

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/58b27861-57dc-4923-b762-bbe4b046eb45n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages