Socket 2 « Client « Java Network Q&A

Home
Java Network Q&A
1.API
2.bluetooth
3.Client
4.connection
5.Cookie
6.Development
7.Email
8.File
9.ftp
10.http
11.HttpClient
12.https
13.ip
14.Network
15.OS
16.RMI
17.Security
18.Server
19.Socket
20.tcp
21.UDP
22.url
Java Network Q&A » Client » Socket 2 

1. Client w/Clustered Server question    coderanch.com

I have an enterprise program running on a clustered server with multiple users. This enterprise program can execute .java extensions. I currently have a java extension written that works great, only it executes on the server instead of the client. I'm pretty much a newbie to all this, but can anyone provide guidance on how to execute on the client-side. I've ...

2. Extending a bit torrent client.....    coderanch.com

Hi, i will be given a fairly large project (will be working as an intern) very soon.... it will involve extending an open source bittorrent client to optimise the functionality..... i would like to prepare myself by getting some basic understanding of what exactly i will be asked to do, ...as i am still quite a java-rookie! now, i've downloaded the ...

4. how to test a server and client on the same computer    coderanch.com

This is probably a simple one and I am being stupid, however, I am making a simple server program to receive results from a test on a clients computer, I have checked through everything and it appears to be fine. I am trying to test both programs on the same computer just to check it works, is this possible and how ...

5. How can I determine which access point a mobile client is using    coderanch.com

Hello, My problem is: How can I determine which access point a mobile client is using from a server-side application? My setup is: Several access points One web server Several mobile clients (All on the same subnet) When a mobile client connects to a specific page on my web server, I want to find out which access point the mobile client ...

6. Client sends just 1 character to server (socket reset)    coderanch.com

Hello Everyone, I have this strange problem which has ruined my weekend. I have been developing a client program for a server (which is developed in C). I was able to send full strings + different data types and get response from the server without problem. Now (even though I think I have not changed anything), the connection resets after receiving ...

7. How does p2p network works (how client find other client in the network)    coderanch.com

Bittorrent in particular has a "tracker" server which coordinates the distribution of the file pieces. To download a resource via Bittorrent, one downloads a "torrent" file which tells your client which server is coordinating that resource's clients. What differentiates this generation of p2p networks from earlier ones is that the current generation p2p network doesn't have a single corporation that owns ...

8. Client does not notice that socket is unavailable    coderanch.com

On certain circumstances the client does not notice that the socket is unavailable. Unfortunately I cannot reproduce the situation. But it happened last time when a gateway was down. The server tries to send the message, but cannot. It stops the communication service. The client does not notice and keeps listening on the port. Latter does not realize that there is ...

9. How Server knows that client has closed the socket....(Server Socket is not closed...    coderanch.com

Hello Friends I am using java sockets,my client is writing on server socket and server processes that request and write back the result..., but after finishing the whole work client calls the close() on that server socket but that does not close the socket from server side.... Please tell me how server knows that client has closed the socket.... Client code ...

10. Finding the OS user of a client Socket    coderanch.com

Well, I still get confused as to what is the client/server. First, let me say why I get confused and I am sure you will set me straight . The client/server thing is highly metamorphic and that is where I get my confusion. There are times that I view the client/server thing as waiter/diner -- the diner is the client and ...

11. Server client (Socket programming)    coderanch.com

Hi, there is a client and two servers. the client must communicate with them simultaneously and get data from them (a string). I have used threading and it works but with a little problem. the problem is when i exceute the client, sometimes it gets nothing from servers it just generates "press any key to continue ..." and sometimes it gets ...

12. Client identification problem    coderanch.com

I have a server and it has to identify clients. Suppose if i have 2 clients A and B how will my server identify them? and if server has to send some string to A and some string to B how will the server send it? I used Map from util package but it is not working. This is the server ...

13. Different types of clients Chatting    coderanch.com

14. Developing a server with clients with auto client discovery    coderanch.com

Hi Guys. I'ts been a while since my last visit at javaranch. Well, I need some advice / help. I want to develop a server component, with multiple clients. I want the server to automatically discover my clients. I don't want to configure the server with IP addresses of the clients available on the network. I'd just like to place a ...

15. Simple client / server not success    coderanch.com

Hi, I have a echo server and echo client. whenever i send a line to server, it is seen at the server. But i want to send the line through the server and should receive at client. How can i do so. Some body please help. Here's the code. EchoServer import java.net.*; import java.io.*; public class EchoServer { public static void ...

16. Help need for client server program    coderanch.com

Hi i was trying to come up with a program where the client would be sending a audio file to a server and the server would be saving it. I am unable to find what is wrong with my program (it's getting stuck) can some one help me with this program. Server program: import java.io.*; import java.net.*; import java.util.*; import java.util.regex.*; ...

17. IRC Client    coderanch.com

20. Newbie question about TLS client: Where to begin?    coderanch.com

I need to code a TLS client application that will connect to the same host server using multiple simultaneous sockets, with a different Client Certificate for each connection. Additionally, web users will need to be able to upload their .p12 encrypted certificates to the web server, and the server needs to be able to decrypt the certificate and add it to ...

21. Problem with echo server and client.    coderanch.com

HAllo. I am staring and staring at my code below but can not work out what i have don wrong. A client connects successfully to the server and gets the message "Echoserver running" from the server but when writing to the server nothing happens. A hint to make me locate the logical flaw would be nice! Client: public class EchoClient { ...

22. How do you use doPost from client ?    coderanch.com

23. Client doesn't get output when local address is replaced by server address    coderanch.com

Client doesn't get output when local address is replaced by server address and client is run from other machine. Below code works fine when Client and Server are running on same machine but when client runs from other machine with Server's IP address, Client doesn't get any output. TestClient.java import java.io.*; import java.net.*; public class TestClient{ public void go(){ try{ Socket ...

24. server to client problem    coderanch.com

Ulf Dittmer wrote:What kind of communication channel is this? Are both sides under your control, so that you can instrument it for debugging? hi. thanks for your reply. Yes I can change the source code on both client and server if that's what you mean. On the server side every client has it's own thread but, I need to find a ...

25. client server socket program help    coderanch.com

26. Java client and C server socket    coderanch.com

Hi all, Can anyone please help me on this query? I have a server written in C and client in Java. I need to establish a tcp/ip connection between them. Right now I am able to set a socket connection from my Java client program and created an input stream which is continuously reading data from the server. I need to ...

27. Client window opening in Server Machine..!    coderanch.com

Hi, I have made a multithreaded chat application and integrated it in a web application. It's working fine if I run the chat Server and the Web Application clients on the same machine. but, when I run the server on a separate machine and calls the Chat Client from other machine, the chat window is opening on the Server side, not ...

28. Synchronizing clients over a network    coderanch.com

Hi, I am relatively new to Java network programming, and would appreciate if anyone could point me to the right direction to the problem below: A server S and three clients named A, B, and C respectively are on a network. A task is initiated by S, and is repeated for a number of times. For each run of the task, ...

29. Client disconnected from server after about 10 minutes of inactivity    coderanch.com

My client is disconnected from the server after about 10 minutes of inactivity. Why is this? I do not have anything in my code that does that. The program stays up, but the connection between the client and server is lost. Why is this and how can I fix it? NOTE: My client code is over 1k lines long, so you ...

30. Secure Socket + Client    coderanch.com

I have a client and server program. It runs perfectly fine. I am worried about hackers. So far, I have placed all the restrictions and code on the clients. I now realize that if a hacker made his own program, he would be able to do some things that he shouldn't be able to do. What is the best way to ...

31. Searching for easy to use WebDav Client API    coderanch.com

Hi, I have to implement a simple task namely erasing all files from a WebDav directory. I did a google search but could not find a simple Web Dav client API. Slide is retired, Jackrabbit seems only for server side stuff and has no easy examples. Does anybody know an easy to use WebDav Client Api? A small example would be ...

32. Creating a Application that runs both a client and a server (p2p)    coderanch.com

public Server() throws IOException { System.out.println("Starting..."); Node = new ServerSocket(serverNumber); System.out.println("Server UP, port " + serverNumber + " is open"); this.start(); new Client().start(); } public void run() { while(true) { try{ Socket client = Node.accept(); System.out.println("got connection " + client.getPort() + " " + client.getInetAddress()); //Connect c = new Connect(client); aSockets[connections] = client; connections++; System.out.println("current connection number: " + connections); if ...

33. creating first Client server application    coderanch.com

hi all, I am not new to Java but new to j2ee. I don't know if it is the right place to ask this type of question. If not then please point me to the right place. I want to make a client server application over http. I want to make a server that generates some data and over http i ...

34. Self Signed CA Certificate with Keytool and Client Certificate with BouncyCastle    coderanch.com

Hi All, I just wanted to check that if i create a Server Certificate using Keytool command and then use this certificate to sign a CSR to create a client certificate (created using bouncycastle APIs). Imported the CA Certificate in Client Truststore and imported the Client Certificate in Server TrustStore. and then configure tomcat to communicate using 2-way ssl certificate exchange. ...

35. Simple Socket program: Java Client- C server    java-forums.org

Dear All, I am pasting my code for a simple socket server in C and a java client. I use write method sending character by character in Java. However after the chunk of characters are sent(here, 'h', 'e', 'y') , the Java client is send blocked as the C server does not reply to it :( I am assuming there is ...

36. Handling dropped client sockets - never mind! SOLVED it myself.    forums.oracle.com

Hiya, I am working on a chat program, which I've gotten up and running thanks to help from some of the guys on the forum. However, I noticed that whenever a client is terminated, the server runs into errors. Is there a way to handle dropped clients so that the server continues to run? Thanks SUPER EDIT: I had a hunch ...

37. Server to client using Socket    forums.oracle.com

How is the server sending the String? - if it's using DataOutputStream.writeUTF(), you have to use DataInputStream.readUTF() - if it's using PrintWriter.println(), or BufferedWriter.write()/newLine(), you have to use BufferedReader.readLine() - if it's using Writer.writeChars() you have to use Reader.readChars() - if it's using DataOutputStream.writeBytes() or write() you have to use DataInputStream.read(). - ... etc, you get the picture And turning a ...

38. new to java... socket programming involving 3 hosts(Client, Host and relay)    forums.oracle.com

package tcpserver; import java.io.*; import java.net.*; /** * * @author Administrator */ /* Server (running on host id) * overview of the server tcp and how it works. * Create socket port = x, for incoming request; welcomeSocket = serverSocket * wait for incoming connection request(ConnectionSocket=welcomeSocket.accept() * read request from ( connectionScoket) * Write reply to (connectionSocket) * close(connectionClose)*/ class TCPServer ...

39. Socket - detect whether Client or Server is connected    forums.oracle.com

send a message wait for a response. How much easier do need it be be? No, Don't answer that. It's a rhetorical question. Typically your client connects to the server and sends a "hello" message. When connectRequest is recieved by the server it (typically) creates a dedicated clientHandler which immediately responds to the client, and then sits and listens for that ...

40. Socket program- client not working    forums.oracle.com

42. Client socket problem    forums.oracle.com

I have client and server connecting together in two different computers with intranet both in local addresses. When closing the server, the client recognize that the connection fail and stopping the application. Now I closed connection of the server manually, by unpluging the wire, for testing and what happened is that the client did not recognize that the connection fail and ...

43. how to set porxy in socket as client?    forums.oracle.com

45. Server / Client Problem (Sockets)    forums.oracle.com

Note: cc is an array of client connection objects. Using this idea, your server will know who's connected, and the status of each connection, as well as the basis for gracefully closing each connection if you wish to shut down your server. In this particular application, I have two separate ports accepting incoming client connections, one for internal clients, and one ...

46. Problem closing client socket    forums.oracle.com

I found the problem - it was related to the interaction with the C++ application. I did my original testing with a simulator that behaved differently than the C++ application. Basically, the simulator was returning a message while the C++ application did not. This was leaving my socket read port in a blocked state and not allowing the socket to close. ...

47. Client Server socket problem (long codes involved-duke points avail)    forums.oracle.com

client [http://pastebin.ca/1217688] server [http://pastebin.ca/1217691] painter [http://pastebin.ca/1217671] The codes is real long so here is the explanation. This is a GUI program. It involves 2 client and a server. Both the clients are supposed to receive the int 99 from the server. The int is sent at line 127 "outputToClient1.writeInt(99);" and line 161 "outputToClient2.writeInt(99);" of server.java and it's supposed to be received ...

48. How to create asynchronous Client Server Socket programming    forums.oracle.com

If you dont know anything about socket programming then first get yourself little brushed up in it...follow the above URL..but if you have some hand over it then for an asynchrounous callback follow these basic steps: 1.Create a client and a server. 2.Create a listener or a callback class for client and attach that to the socket. 3.Call the server program ...

49. Socket - how to put clients to array?    forums.oracle.com

51. Detecting a closed client socket    forums.oracle.com

I am very new to the client-server development and I'm just starting to mess around with them. I was looking for a way for the server to detect when a client has disconnected it's socket connection from itself. I've read around and it seems like some people are saying the only way to know whether a client has disconnected is if ...

52. All client socket close when one is closed    forums.oracle.com

public class SMTPKonekcija implements Runnable{ //some variables public SMTPKonekcija(Socket socket){ this.socket = socket; } public void run() { try { //seting input and outuput streams and some other stuff while (quitFlag == false) { //here I accept SMTP commands and generate and send responses } this.socket.close(); //some Flag setting } catch (Exception e) {

53. Sockets, recognising which client is which    forums.oracle.com

Hello to all, I am new here and therefore I do not know if I am asking this in the right place. I am not new to Java but I am not an expert. I have checked the Socket API to see if there is any solution for my problem but so far I did not manage to find any. Basically ...

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.