ServerSocket is a java.net class that provides a system-independent implementation of the server side of a client/server socket connection.

learn more…| top users | synonyms

0
votes
1answer
19 views

Impossible to receive a message from server

I would like to write a client and a server. The client send a message to server by typing the keyboard, the serveur print the message, respond to client by typping the server. The client print the ...
0
votes
2answers
29 views

Multi-threaded Server Client Address already in use

What I'm trying to do is make receiver class in the server which receives the sent messages from the client and make a sender class in the client. I'm trying to make the receiver in the server first '...
0
votes
0answers
18 views

NIO Server mixes information for different clients

I have a customized client that also implements NIO, currently, it communicates well with the server-Non blocking with work pool, and the two can exchange information perfectly but only when one ...
-1
votes
1answer
31 views

Java application can connect to a specific ip and port but port isn't open in the firewall

The following java code listens for incoming connections on a specific port. I see that clients can connect but how is that possible if the server port is not open in the firewall?ServerSocket ...
-1
votes
1answer
36 views

Two applications working with the same ip and port

I start SqlServer Express that works on port 1433. Then I run a Java application that creates a server socket that executes a bind to the local ip and port 1433.I do not understand why it does not ...
2
votes
1answer
40 views

Ruby unit test for a simple socket server

I have a simple Socket server that listens on port 9000 and returns the reverse string to the clients.require 'socket'# Create the server using the Socket classserver_socket=Socket.new(Socket::...
-1
votes
1answer
24 views

Errors While executing a programs in which client is sending file to server

I don't know where i am going wrong in this code , these are client and server program source code.First i am executed server program which goes fine , but when i executed client program then i got ...
-1
votes
0answers
39 views

no execution after this line of code “Socket socket=serverSocket.accept();”

I am making an android project.Server is running on android device and trying to get the data from client but i am unable to even connect with the client.This is my code snippetpackage com.example....
0
votes
1answer
35 views

<Java> Client/Server chat application not responding when compiled

I am trying to create a two way chat program between a client and sever using JavaFX. Whenever I run the programs, Assignment5Server.java and Assignment5Client.java the window freezes and says "not ...
0
votes
0answers
25 views

Should I make only one `ObjectOutputStream` and `ObjectInputStream` at a time in ServerSocket/Socket?

Let say I have a Server and Client with the following task:Authenticate (Sending and Receiving authentication code)Continue Receiving MessageContinue sending Heartbeat messageand I ...
-1
votes
1answer
41 views

Manage all incoming chat messages in java socket programming

I am developing a program that has a chat feature and I am using sockets in it.In my case, I want to handle each of the client in a different window chat(PLEASE SEE ATTACHED IMAGE).As of now, when ...
-1
votes
0answers
19 views

manage multiple clients on multiple chat window - server

I am making an e-commerce program and I would like to manage multiple chat clients on a multiple window server (client - server vice versa, not group chat).As of now, I made a simple chat system ...
0
votes
1answer
52 views

Can't establish connection to localhost when offline

I build a webserver on my android device by NanoHttpd or ServerSocket and connect to this server from itself. It run good when device is online. But I can't receive request when device isn't online. I ...
0
votes
1answer
59 views

Java ServerSocket won't send or receive messages from client

I have these two classes Client.java and Server.java, each containing a main method. The idea is very simple and the code in them is very similar. The objective I'm trying to achieve is opening a ...
0
votes
1answer
23 views

Android Emulator not able to receive data from socket but same code works in Genymotion

I am sending data from my development machine (Mac) via a Java socket client to android emulator which acts as the socket server. So basically I start android program first which opens socket port and ...

153050per page
angop.ao, elkhabar.com, noa.al, afghanpaper.com, bbc.com, time.com, cdc.gov, nih.gov, xnxx.com, github.com,