Questions tagged [serversocket]

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

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

A server socket's job is to set up the communication endpoint and passively wait for requests to come in over the network.

Further Reference

Related Tags

1869 questions
0
votes
2 answers

Http Post string from C client to Java server gives error 400 Bad Request

I have a C client and a Java server (Tomcat via eclipse). 1- The C client is meant to perform an HTTP Post of a string to the Java Server [Gives error]. 2- The server has a localhost HTML form-page that is meant to save any string it receives which…
Slim R
  • 39
  • 1
  • 9
0
votes
1 answer

Implement Packet capturing for HTTPS website

I have implemented a packet capturing tool using the java IO API. And I have set the port to 8081. The issue is that when i try to access a https website such response does not get captured in my programm. I am developing a sample appliaction to…
0
votes
1 answer

Can I use "new ServerSocket(0)" with openshift

I have developed an application that allows multiple players to play together on line at various games such shifumi, poker, chess and so on. It works very well on my localhost. I would like to publish it. So I decided to use openshift to do…
gero
  • 1
  • 1
0
votes
1 answer

java.net.ServerSocket does not catch all connections

I am trying to implement a web proxy server in java that would relay requests and responses between my browser and the web. In the current set up, I get my browser to send all of the page requests to localhost on a specified port and my proxy is…
kawaiinekochan
  • 212
  • 3
  • 12
0
votes
1 answer

Java Port Scanner is Missing Open Ports

As a tangent to a larger project, I'm trying to implement some code to scan for open ports so that I may eventually run a packet test. At the moment I am just trying to connect to google.com and I know that port 80 accepts a connection, so I've…
lordchancellor
  • 3,847
  • 4
  • 26
  • 26
0
votes
2 answers

Java Limited connections to server

I'm new to java and especially to java networking, but what I'm trying to do is set up a server (for a game). When TWO clients are connected to the server, I want to refuse any other connection. Am I able to close the ServerSocket? And if the…
kubisma1
  • 307
  • 5
  • 13
0
votes
1 answer

ServerSocket is using ip /::

I'm making a chat application for android and currently testing with 2 emulators and a phone connected via usb. I have not been able to get a Socket to connect to a ServerSocket for pretty much the last 24 hours. Each host is using a ServerSocket…
Kacy
  • 3,330
  • 4
  • 29
  • 57
0
votes
1 answer

Connection timeout occurs while connecting through telnet

I am writing a telnetclient example using apache-commons-net.2.0.jar to connect to a target using telnet protocol. There is no problem with the jar it establishes the connection with the host if the host is up and running. If i reboot the system and…
Shriram
  • 4,343
  • 8
  • 37
  • 64
0
votes
2 answers

File Transfer But Cannot load in its respective Launcher(Adobe Pdf) - Java Server Client

I Have a Project working for my Java Class, I am Using Socket Yes I look at a Tutorial online for help, the aim is to read a file on a server of pdf type then allow the CLient to request this File from the Sever. My Issue It request the File but…
Redcode
  • 73
  • 1
  • 2
  • 9
0
votes
0 answers

Why the message from ServerSocket is blocked until the client disconnect?

I have a Class create a serversocket and it's working. I connect to the server with TCP&UDP debug tools. and I found what I send is blocked until I disconnect. So I can't recieved any message from server in my socket client also can't get any…
chanjianyi
  • 607
  • 4
  • 15
  • 35
0
votes
2 answers

How to write A ServerSocket which accept multiple clicent Socket?

I am working on Socket programming. I have build such a server which should accept multiple Clients. Here I have particular num of clients , clients keeps on sending msg to Server every 10sec , Server has to process it.The problem I am having is I…
Raghu
  • 1,324
  • 7
  • 24
  • 47
0
votes
1 answer

Need serversocketchannel accept 1000 TCP connection per second

I am using below code for connecting for my custom java nio server: public static void main(String[] args) { try { String value[] = { "00*********402", "00*********383",.....} int i = 0; while (i < value.length) { …
Husein Behboudi Rad
  • 5,434
  • 11
  • 57
  • 115
0
votes
1 answer

Can't connect to another pc (another IP)using JAVA

i am trying to connect with Client Class to server that uses in another computer with another IP...i wrote the ip of the server and the same port in the Socket but there isn't connection...I succeed to connect to the server when i run the server and…
user3997118
  • 71
  • 2
  • 10
0
votes
1 answer

Java: A client/server file transfer (incomplete files)

I am building an application that will send file across the network through sockets. There are 2 programs. Server and Client each have two classes Download and Upload. public class Download implements Runnable{ public ServerSocket server; …
0
votes
2 answers

How to keep Socket Connection until Server Process it?

I am writing Socket program , Here Client Sends a String through Stream , Server Process it and writes back to Client. My problem is, after Server process the String , it Writes back to Stream but in client It can't able to read the Stream its…
Raghu
  • 1,324
  • 7
  • 24
  • 47