Does it work if you tell Java to use the IPv4 stack?
Use the following command line option when starting the server and client.
-Djava.net.preferIPv4Stack=true
See also here
More Related Contents:
- Where is the getInputStream() function in java 1.8?
- Java socket API: How to tell if a connection has been closed?
- Java sending and receiving file (byte[]) over sockets
- Java Socket why server can not reply client
- Sockets: Discover port availability using Java
- Why is it impossible, without attempting I/O, to detect that TCP socket was gracefully closed by peer?
- Java socket/serialization, object won’t update
- Setting a timeout for socket operations
- How to read all of Inputstream in Server Socket JAVA
- Asynchronous IO in Java?
- Java swing GUI freezes
- How to terminate a thread blocking on socket IO operation instantly?
- What is the difference between connection and read timeout for sockets?
- how to achieve transfer file between client and server using java socket [duplicate]
- A Simple Http Server with Java/Socket?
- Java Creating a new ObjectInputStream Blocks
- Send HTTP request manually via socket
- Fastest way to scan ports with Java
- Properly closing SSLSocket
- java.net.SocketException: Software caused connection abort: recv failed [duplicate]
- Do Java sockets support full duplex?
- Creating the ServerSocket in a separate thread?
- How do I check if a Socket is currently connected in Java? [duplicate]
- New java.security.AccessControlException in Java 8
- How Can I Access an SSL Connection Through Android?
- Android : Socket – java.net.SocketException: sendto failed: EPIPE (Broken pipe)
- Java HttpURLConnection and pooling
- How do I close a port in a case of program termination?
- Java socket IOException – permission denied
- What is the difference between closing Input/OutputStream and closing Socket directly?