java.net.SocketException: connect (code=10051)

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via Coderanch by Alex Ku, 1 year ago
connect (code=10051)
via jmeter-user by Todd Grayson, 1 year ago
connect (code=10051)
via jmeter-user by Samer Forzley, 1 year ago
connect (code=10051)
via jmeter-user by Wesley Gamble, 1 year ago
connect (code=10051)
via jakarta-jmeter-user by Todd Grayson, 1 year ago
connect (code=10051)
java.net.SocketException: connect (code=10051)
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:320)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:133)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:120)
at java.net.Socket.(Socket.java:273)
at java.net.Socket.(Socket.java:100)
at sun.net.NetworkClient.doConnect(NetworkClient.java:50)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:335)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:521)
at sun.net.www.http.HttpClient.(HttpClient.java:271)
at sun.net.www.http.HttpClient.(HttpClient.java:281)
at sun.net.www.http.HttpClient.New(HttpClient.java:293)
at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:404)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:497)
at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:230)
at javax.swing.JEditorPane.getStream(JEditorPane.java:539)
at javax.swing.JEditorPane.setPage(JEditorPane.java:320)
at javax.swing.JEditorPane.setPage(JEditorPane.java:640)
at undefined.Browser.(Browser.java:26)
at undefined.Browser.main(Browser.java:39)

Users with the same issue

4 times, 1 month ago
Once, 2 months ago
2 times, 2 months ago
Once, 2 months ago
3 times, 3 months ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.