1. Explore
  2. »
  3. Java Runtime
  4. »
  5. java.net
  6. »
  7. PlainSocketImpl

java.netPlainSocketImpl errorsJava Runtime

Top patterns

  1. Client cannot establish connection with the server

    Roughly there are three categories of this problem:

    • no network available: Probably your machine's network interface is down. Check if you have internet and your application has permissions to use the network interface
    • connection refused: The address you are trying to connect is not listening. Check if you did not misspelled the host or the port. Also verify that the server you are trying to reach is actually running and listening.
    • connection timed out: The server took too much time to respond. You either have to increase the timeout limit or speed up the server.
  2. PlainSocketImpl.doConnect() has thrown a ConnectException
    No solution
  3. PlainSocketImpl.connectToAddress() has thrown a ConnectException
    No solution
Error patternsMethodsExceptions
DescriptionException TypeEntry MethodWeb pages

Client cannot establish connection with the server

java.net.ConnectException
java.net.PlainSocketImpl.socketConnect
4814Web pages
1Solution
ConnectExceptionPlainSocketImpl.socketConnect()4814

PlainSocketImpl.doConnect() has thrown a ConnectException

java.net.ConnectException
1 frames hidden
java.net.PlainSocketImpl.doConnect
2794Web pages
ConnectExceptionPlainSocketImpl.doConnect()2794

PlainSocketImpl.connectToAddress() has thrown a ConnectException

java.net.ConnectException
2 frames hidden
java.net.PlainSocketImpl.connectToAddress
2751Web pages
ConnectExceptionPlainSocketImpl.connectToAddress()2751

PlainSocketImpl.connect() has thrown a ConnectException

java.net.ConnectException
3 frames hidden
java.net.PlainSocketImpl.connect
2734Web pages
ConnectExceptionPlainSocketImpl.connect()2734

Port already in use

java.net.BindException
java.net.PlainSocketImpl.socketBind
1032Web pages
BindExceptionPlainSocketImpl.socketBind()1032

PlainSocketImpl.connect() has thrown a ConnectException

java.net.ConnectException
5 frames hidden
java.net.PlainSocketImpl.connect
859Web pages
ConnectExceptionPlainSocketImpl.connect()859

PlainSocketImpl.bind() has thrown a BindException

java.net.BindException
1 frames hidden
java.net.PlainSocketImpl.bind
692Web pages
BindExceptionPlainSocketImpl.bind()692

PlainSocketImpl.connect() has thrown an UnknownHostException

java.net.UnknownHostException
java.net.PlainSocketImpl.connect
557Web pages
UnknownHostExceptionPlainSocketImpl.connect()557

PlainSocketImpl.connect() has thrown a ConnectException

java.net.ConnectException
5 frames hidden
java.net.PlainSocketImpl.connect
401Web pages
ConnectExceptionPlainSocketImpl.connect()401

PlainSocketImpl.socketConnect() has thrown a SocketTimeoutException

java.net.SocketTimeoutException
java.net.PlainSocketImpl.socketConnect
362Web pages
SocketTimeoutExceptionPlainSocketImpl.socketConnect()362

PlainSocketImpl.socketConnect() has thrown a SocketException

java.net.SocketException
java.net.PlainSocketImpl.socketConnect
317Web pages
SocketExceptionPlainSocketImpl.socketConnect()317

PlainSocketImpl.socketAccept() has thrown a SocketException

java.net.SocketException
java.net.PlainSocketImpl.socketAccept
292Web pages
SocketExceptionPlainSocketImpl.socketAccept()292

PlainSocketImpl.connect() has thrown an UnknownHostException

java.net.UnknownHostException
1 frames hidden
java.net.PlainSocketImpl.connect
265Web pages
UnknownHostExceptionPlainSocketImpl.connect()265

PlainSocketImpl.socketConnect() has thrown a NoRouteToHostException

java.net.NoRouteToHostException
java.net.PlainSocketImpl.socketConnect
265Web pages
NoRouteToHostExceptionPlainSocketImpl.socketConnect()265

PlainSocketImpl.doConnect() has thrown a SocketException

java.net.SocketException
1 frames hidden
java.net.PlainSocketImpl.doConnect
233Web pages
SocketExceptionPlainSocketImpl.doConnect()233

PlainSocketImpl.connectToAddress() has thrown a SocketException

java.net.SocketException
2 frames hidden
java.net.PlainSocketImpl.connectToAddress
230Web pages
SocketExceptionPlainSocketImpl.connectToAddress()230

PlainSocketImpl.connect() has thrown a SocketException

java.net.SocketException
3 frames hidden
java.net.PlainSocketImpl.connect
227Web pages
SocketExceptionPlainSocketImpl.connect()227

PlainSocketImpl.connect() has thrown a NetworkOnMainThreadException

android.os.NetworkOnMainThreadException
5 frames hidden
java.net.PlainSocketImpl.connect
205Web pages
NetworkOnMainThreadExceptionPlainSocketImpl.connect()205

PlainSocketImpl.accept() has thrown a SocketException

java.net.SocketException
1 frames hidden
java.net.PlainSocketImpl.accept
190Web pages
SocketExceptionPlainSocketImpl.accept()190

PlainSocketImpl.bind() has thrown a BindException

java.net.BindException
3 frames hidden
java.net.PlainSocketImpl.bind
146Web pages
BindExceptionPlainSocketImpl.bind()146

PlainSocketImpl.connect() has thrown a SocketException

java.net.SocketException
5 frames hidden
java.net.PlainSocketImpl.connect
144Web pages
SocketExceptionPlainSocketImpl.connect()144

PlainSocketImpl.read() has thrown a SocketTimeoutException

java.net.SocketTimeoutException
java.net.PlainSocketImpl.read
136Web pages
SocketTimeoutExceptionPlainSocketImpl.read()136

PlainSocketImpl.connect() has thrown a SocketTimeoutException

java.net.SocketTimeoutException
5 frames hidden
java.net.PlainSocketImpl.connect
133Web pages
SocketTimeoutExceptionPlainSocketImpl.connect()133

PlainSocketImpl.connect() has thrown a NoRouteToHostException

java.net.NoRouteToHostException
3 frames hidden
java.net.PlainSocketImpl.connect
132Web pages
NoRouteToHostExceptionPlainSocketImpl.connect()132

PlainSocketImpl.access$000() has thrown a SocketTimeoutException

java.net.SocketTimeoutException
1 frames hidden
java.net.PlainSocketImpl.access$000
125Web pages
SocketTimeoutExceptionPlainSocketImpl.access$000()125

PlainSocketImpl.socketBind() has thrown a SocketException

java.net.SocketException
java.net.PlainSocketImpl.socketBind
110Web pages
SocketExceptionPlainSocketImpl.socketBind()110

PlainSocketImpl.connect() has thrown a ConnectException

java.net.ConnectException
4 frames hidden
java.net.PlainSocketImpl.connect
107Web pages
ConnectExceptionPlainSocketImpl.connect()107

PlainSocketImpl.bind() has thrown a SocketException

java.net.SocketException
1 frames hidden
java.net.PlainSocketImpl.bind
94Web pages
SocketExceptionPlainSocketImpl.bind()94

PlainSocketImpl.socketAccept() has thrown a SocketTimeoutException

java.net.SocketTimeoutException
java.net.PlainSocketImpl.socketAccept
91Web pages
SocketTimeoutExceptionPlainSocketImpl.socketAccept()91

PlainSocketImpl.connect() has thrown a SocketTimeoutException

java.net.SocketTimeoutException
3 frames hidden
java.net.PlainSocketImpl.connect
90Web pages
SocketTimeoutExceptionPlainSocketImpl.connect()90

PlainSocketImpl.doConnect() has thrown a SocketTimeoutException

java.net.SocketTimeoutException
1 frames hidden
java.net.PlainSocketImpl.doConnect
82Web pages
SocketTimeoutExceptionPlainSocketImpl.doConnect()82

PlainSocketImpl.connectToAddress() has thrown a SocketTimeoutException

java.net.SocketTimeoutException
2 frames hidden
java.net.PlainSocketImpl.connectToAddress
81Web pages
SocketTimeoutExceptionPlainSocketImpl.connectToAddress()81

PlainSocketImpl.connect() has thrown a SocketTimeoutException

java.net.SocketTimeoutException
3 frames hidden
java.net.PlainSocketImpl.connect
79Web pages
SocketTimeoutExceptionPlainSocketImpl.connect()79

PlainSocketImpl.read() has thrown a NetworkOnMainThreadException

android.os.NetworkOnMainThreadException
3 frames hidden
java.net.PlainSocketImpl.read
69Web pages
NetworkOnMainThreadExceptionPlainSocketImpl.read()69

PlainSocketImpl.doConnect() has thrown a BindException

java.net.BindException
1 frames hidden
java.net.PlainSocketImpl.doConnect
68Web pages
BindExceptionPlainSocketImpl.doConnect()68

PlainSocketImpl.connect() has thrown a BindException

java.net.BindException
3 frames hidden
java.net.PlainSocketImpl.connect
66Web pages
BindExceptionPlainSocketImpl.connect()66

PlainSocketImpl.connect() has thrown a ConnectException

libcore.io.ErrnoException
5 frames hidden
java.net.PlainSocketImpl.connect
61Web pages
ConnectExceptionPlainSocketImpl.connect()61

PlainSocketImpl.connect() has thrown a ConnectException

libcore.io.ErrnoException
6 frames hidden
java.net.PlainSocketImpl.connect
57Web pages
ConnectExceptionPlainSocketImpl.connect()57

PlainSocketImpl.socketSetOption() has thrown a SocketException

java.net.SocketException
java.net.PlainSocketImpl.socketSetOption
50Web pages
SocketExceptionPlainSocketImpl.socketSetOption()50

PlainSocketImpl.setOption() has thrown a SocketException

java.net.SocketException
1 frames hidden
java.net.PlainSocketImpl.setOption
47Web pages
SocketExceptionPlainSocketImpl.setOption()47

PlainSocketImpl.socketListen() has thrown a SocketException

java.net.SocketException
java.net.PlainSocketImpl.socketListen
45Web pages
SocketExceptionPlainSocketImpl.socketListen()45

PlainSocketImpl.listen() has thrown a SocketException

java.net.SocketException
1 frames hidden
java.net.PlainSocketImpl.listen
44Web pages
SocketExceptionPlainSocketImpl.listen()44

PlainSocketImpl.connect() has thrown a ConnectException

java.rmi.ConnectException
3 frames hidden
java.net.PlainSocketImpl.connect
41Web pages
ConnectExceptionPlainSocketImpl.connect()41

PlainSocketImpl.connect() has thrown a ConnectException

android.system.ErrnoException
6 frames hidden
java.net.PlainSocketImpl.connect
39Web pages
ConnectExceptionPlainSocketImpl.connect()39

PlainSocketImpl.doConnect() has thrown a ConnectException

java.net.ConnectException
java.net.PlainSocketImpl.doConnect
37Web pages
ConnectExceptionPlainSocketImpl.doConnect()37

PlainSocketImpl.connect() has thrown a ConnectException

java.net.ConnectException
2 frames hidden
java.net.PlainSocketImpl.connect
34Web pages
ConnectExceptionPlainSocketImpl.connect()34

PlainSocketImpl.connectToAddress() has thrown a ConnectException

java.net.ConnectException
1 frames hidden
java.net.PlainSocketImpl.connectToAddress
34Web pages
ConnectExceptionPlainSocketImpl.connectToAddress()34

PlainSocketImpl.connect() has thrown a ConnectException

libcore.io.ErrnoException
6 frames hidden
java.net.PlainSocketImpl.connect
32Web pages
ConnectExceptionPlainSocketImpl.connect()32

PlainSocketImpl.connect() has thrown a ConnectException

java.net.ConnectException
2 frames hidden
java.net.PlainSocketImpl.connect
31Web pages
ConnectExceptionPlainSocketImpl.connect()31

PlainSocketImpl.write() has thrown a SocketException

java.net.SocketException
2 frames hidden
java.net.PlainSocketImpl.write
30Web pages
SocketExceptionPlainSocketImpl.write()30
Nothing to list here.
Nothing to list here.