Client 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 » Client 2 

2. What is -server and -client option?    coderanch.com

3. Java Head First Client Server Example    coderanch.com

I posted below link to the Socket and Internet forum, but have not had any luck getting a response. Perhaps, my question is too basic that it should be posted here instead. It relates to sockets but could be classified as a beginner's question because this was borne out of reading the Hhead First Java book, which is specifically geared for ...

4. one client and two servers    coderanch.com

Hi all, now I have created my applications but I think it does not work correctly. I have two servers and one client , the client must get data from the servers simultaneously. It get the data from them, but it sometimes does not work correctly, and it writes the data from one of the servers. here is my code. ------------Server ...

5. client and server network    coderanch.com

hello everyone!! i have a client and server source code! And i have to to implement a guess number game so that when the client connects he needs to play the game! here is the server and client code! I've already implemented the game method called playGame in the server source code but can't get it to work. can any one ...

6. Server & Client are both waiting    coderanch.com

Hi.... I am trying to write a program which contains a server & a client. First I write the program as server sends some messages and client prints them. It is working fine. But when I added the code to send messages from client to server... Now it is not working. My code is Chat Server import java.io.*; import java.net.*; import ...

7. Java network client application, is it possible??    coderanch.com

Well, it's my turn to show my ignorance about java. I have been trying to teach myself java, more due to a curiosity than an explicit need. My biggest problem is trying to establish a common point of reference. You see I have been writing computer software for a living since 1968 (yeah I am a real dinosaur) but the software ...

8. Java Server Client Desktop Application    coderanch.com

P2P seems an odd choice given your clearly client-server based protocol. RMI is an easy solution since all the hard work is done for you. You can secure it quite easily too. Assuming you are using UnicastRemoteObject as your server base, you can pass instances of javax.rmi.ssl.SslRMIClientSocketFactory and javax.rmi.ssl.SslRMIServerSocketFactory to your constructor. All socket communication then uses SSL.

9. Network application being both a client and a server    coderanch.com

Hi. I wrote applications that were either a server, listening for incoming connections, or clients, initiating such connections. Now I have the need to write a small application that both listens for incoming connections, and may also initiate connections to another instance of the same app on a different host. Does it need to use different threads for listening and initiating ...

10. how to shutdown client from server    coderanch.com

11. How do you formally disconect a client from a server?    coderanch.com

Hey, everybody. I'm writing a chat server and client, and I've noticed that whenever I just shut down the client, the server throws an error, but no functionality is affected. In fact, if it weren't for the fact that I have the CLI for the server open whenever I'm running it, I wouldn't have noticed this at all. Is this even ...

12. How to package client which requires access to server interfaces?    coderanch.com

Hi, I'm new to distributed systems and thick clients, so I have a basic question. I'm trying to devise a strategy for packaging an application that comprises of a server and a thick client, which communicate through Spring's HTTPInvoker (a simple RMI like mechanism). The question is: how should I package the client, which requires access to interfaces from the server ...

13. Errors from server to client    coderanch.com

Hi! I'm not sure if this question belongs here, but I'll give it try. Here is my RMI application: public class ServerStarter { private static Properties setProperties(String arg) { try { //some code } catch(IOException e) { //TODO e.printStackTrace(); } } public static void main(String[] args) { try { //some code } catch(Exception e) { //TODO e.printStackTrace(); } } } public ...

14. Getting Client Details - server side    coderanch.com

Hi, How can i get the following details from a client request.. 1) Client IP - request.getRemoteAddr(); 2) Browser getHeader("User-Agent") - Will this be suffiecient..i have my doubts - Name (for IE8, got MSIE 7.0) - Version 3) Client OS - 4) System Info 5) Referrer URL request.getheader("Referer"); Or we need to send these details from client to server through javascript... ...

15. Newbie help : Client / Server.    coderanch.com

Experts, Newbie, or if there is a level below...... Trying to create a Client Server app, simply the server should count connected clients once, the total is ==5 tell all clients a message, end the connection gracefully and clear the count and the vector that held the names, awaiting 5 more clients to connect. From examples on the web etc i ...

16. Client Class Not Found By Server    coderanch.com

17. Client server program    coderanch.com

Hi, I want to create a peer which is client as well as server. I am able to use threads to create server to handle many requests. But I should be able to create one more thread which will work as client in the same peer. How to create such different types of threads. I am not able to find out. ...

18. Client Server Tech. Application    coderanch.com

Good Day All, I have an application that transfer documents between source and destination machines and the transfer document process is controled by server machine , install controler application on the server and install client (agent) application in source and destination machines, server sent notifcation to the source to send document to destination and destination send notifaction to server that it ...

19. Client server program in java on 2 different machines connected on internet    go4expert.com

//Client.Java import java.net.*; import java.io.*; class Client { public static void main(String[] args) { Socket client; String host="home";//home is Server's computer name try {InetAddress adressen = InetAddress.getByName(host); client = new Socket(adressen,4444); BufferedReader scanf = new BufferedReader(new InputStreamReader(client.getInputStream())); String someString = scanf.readLine(); System.out.println("From Server: "+someString); client.close(); } catch(Exception e) { System.out.println(e); } } }

20. URGENT....Creating a new dir frm client in server machine    go4expert.com

Hi, I would like to knw: In JAVA, how shld i create new directory in a server machine as a result of an action of client interaction? i.e suppose one client is uploading a file to the server.I want to create a directory in the server with the name of dir. as d name of d file to be uploaded and ...

21. Ping Client    java-forums.org

22. Java Server, Flash Client    java-forums.org

I've been asked to develop a web based server app in Java capable of communicating with a Flash based client. I have become confused when researching the maze of possibilities for the communication layer and would like to ask what you guys feel the simplest soution is for allowing Actionscript and Java to communicate via the web? Many thanks.

24. about client to server problem    java-forums.org

25. Simple Client (2) - Server program    java-forums.org

Hi, I have made a simple client server program, (using a thread in the server to allow 2 clients at once to interact with the server) When running all 3 applications on 1 computer (using getlocalhost) it seems to run fine , but when I use 3 different computers ( for 2 clients + 1 server), only 1 client seems to ...

26. server-client; client sends a username to the server.    java-forums.org

I have reformed my server code, but the only thing that I am not sure about is how the server would get a selected name from the client? would I just have to create a protocol and states for the accounts? say the person was new and types name in to use from the client, how could I get the client ...

27. creating a server and client in java    java-forums.org

i changed that into datainputstram and dataOuptputStream. now when i run client i got this error message. java.net.ConnectException: Connection refused: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl .java:333) closing connection at java.net.PlainSocketImpl.connectToAddress(PlainSoc ketImpl.java:195) at java.net.PlainSocketImpl.connect(PlainSocketImpl.j ava:182) at java.net.SocksSocketImpl.connect(SocksSocketImpl.j ava:366) at java.net.Socket.connect(Socket.java:507) at java.net.Socket.connect(Socket.java:457) at java.net.Socket.(Socket.java:365) at java.net.Socket.(Socket.java:207) at Client.connectToServer(Client.java:67) at Client.runClient(Client.java:35) at ClientTest.main(ClientTest.java:18) Exception in thread "main" java.lang.NullPointerException at Client.closeConnection(Client.java:121) at Client.runClient(Client.java:57) ...

28. problem with a simple client server app    java-forums.org

Hi Guys task is to produce a simple client/server guessing game app. I cant seem to get it to respond after the first guess. So it's getting to the part where it sends the next guess back to the server, but just stops at that point. Probably something simple but after any hints - code below Java Code: public class GuessingGame ...

29. Really big problem in client and server program    java-forums.org

Do you really write your code with no indentations for nesting/scope levels? It makes it very hard to read if the nested code is not indented. Especially to find matching { and } Following from the Client code in your post #13 dos.writeBytes(str+"\n"); // Notice the \n here See the second line in post #6

31. Java networking, client receives null on readLine()    java-forums.org

Sometimes the program works fine, other times it crashes on readLine() in ChatClient, receiving null Thanks all. Java Code: package battleships; /* ChatClient.java */ import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.IOException; import java.io.PrintWriter; import java.net.Socket; import java.net.UnknownHostException; public class ChatClient { private static int port = 1001; /* port to connect to */ private static String host = "localhost"; /* host to ...

32. How can i retain special characters in server side (java) after passing from client    java-forums.org

Hi, while passing a string containing special characters from client side to server side, special characters are converted to some junk characters when we are getting to java file. i have stored the string in a bean property, and i am getting the same property from bean in java. But it is coming with some junk where special characters are in ...

33. need help with client server programming    forums.oracle.com

Now when i run the two programs simultaneously they work. as in when i send a paket from the client it is received by the server. But when i replace "localhost" by my actual ip address. it dosent work. Im conected to the internet via a wireless router. I looked up my ip address from a site and it gave the ...

34. Can't get client and server to communicate    forums.oracle.com

Your server wants to read entire lines but your client doesn't send lines, i.e. no \n character is sent to the server so the server keeps on waiting and reading until it finds one. When you kill the client effectively an eof is read by the server and stops the reading. kind regards, Jos

35. how to pass afile from client to server/...    forums.oracle.com

princessrevathy wrote: please tel me how to pass ms word file from server to client and execute it........open msword file in client using java I assume we're talking about a web browser. If that's right, the client will have to request the file. You can then send the file to the client in response to that request. However, when the client ...

36. Open & executin a c prg in server & tranfer output to client    forums.oracle.com

A compiler reads a source file and produces executable code. They are pretty complex programs in their own right. Just like in Java, where you write a .java file as source, use javac to produce code that you would not recognize if you tried to read it, which is then executed on the Java virtual machine. A C source file typically ...

37. Client / Server Query Tool    forums.oracle.com

Hi, I am very new to Java.I have been asked to create a tool which is client server based. The users of this tool have no idea about SQL and Oracle.They need to query the database without writing queries.They would just provide few details and internally the tool should run the query and show the result to the user on the ...

38. Client Server program where server notifies the client    forums.oracle.com

hi am new to java an was wondering how to make a client server program in which the server has to trigger or send a notification to the client that an update or something is available .. i know the client can connect to the server and i know how to read write to a file between the two but don't ...

39. How to transfer folder from client to server.    forums.oracle.com

40. countdown timer from server to client    forums.oracle.com

i am using server soket to comunicate my server with client in flash. i would like to send a coundown timer from server to client where certain client can see the timer. and when the timer stop, server will start certain action. i am new in java and really no idea how to do it.. anyone hav any suggestion on how ...

41. Client Server    forums.oracle.com

your question is too vague. what's happened is, everyone's looked at it, and seen that answering it will just commit them to an endless session of probing you to define exactly what you want, while you just reply with "and I want it to do this" without ever explaining what "it" is, or what you're trying to achieve. it's tiring to ...

42. Client/ Server Application    forums.oracle.com

Can anyone help me with the following program, I am only beginner so would appreciate if you could keep it simple as Im only learning how to write this code Java Client/Server Application Establish a simple server using Java which will 1. Create a Server Socket Connection 2. Listen indefinetly for connections to the Server 3. Establish an input and output ...

43. Client / server setup    forums.oracle.com

I'm a bit confused by the Java tutorials. None seem to really tell me what I want to know. Here's what I want to do: - Server side running on GlassFish v3, using JPA to store/retrieve data. - Application client started via WebStart, using Swing. - Communication between the to is done via SOAP (so I can support other clients too). ...

44. simple client <-> proxy <-> server toy program    forums.oracle.com

Questions: 1. When constructing a socket for client side, i should be including proxy IP and proxy listened_port as parameters right? if I try to put in a local ip such as 127.99.99.99, and port number 5999. At the same time i set my proxy port_to_listen_to as 5999 how will I know which address represents my proxy? Will any random local ...

45. Client Server Problem    forums.oracle.com

46. Server client problem    forums.oracle.com

That's no good. For anybody. The only way anybody can solve your problem in that situation is to take all of your code, compile it and run it, having first extracted from you exactly what it's supposed to do. Not happening. The reason you need to develop the skill for yourself is, while you're learning it, you'll also learn how to ...

47. Client \ Server issue    forums.oracle.com

48. Client server updating    forums.oracle.com

Hi everyone, I am relatively new to java. I am writing a client server application. The client requests an article from the server, the server retrieves it and sends it to the client. That part all works fine. However i want to be able to add new articles to the server and then update the client accordingly without recompiling the whole ...

49. Java - Client Server?    forums.oracle.com

Hi, I am trying to add a counter for each resource that counts how many times the resource has been downloaded. Each time a resource is downloaded, the server displays the value of counter on the server side. Please can anyone give me ideas about how to overcome problems with concurrent threads sharing the same data? Thanks.

50. Client - Server on Internet    forums.oracle.com

I do not believe that it is suitable to attack straight to the database, therefore I will have to use a server who takes charge of the business rules. What can I use? Is it possible to use hostings of third for the server (with the business rules)? Do you know anyone?

51. client_server    forums.oracle.com

Hi all, Warm Greetings of the day!!!!!!!!!! This is raghu!!! I am new to forum I am developing a client server program which communicates with many clients at a time. My app is working fine with one client but for multiple clients I am not sure where to start with I mean how would I do this can I create threads ...

52. Server / client program help    forums.oracle.com

53. Client and server application please help    forums.oracle.com

Sorry about that, my server code seems to be accepting the connection fine and my client code will allow me to enter a request but when i enter a request at the client interface i am getting an error as the server seems to have problems understanding my request from the client.

54. Client Server Question    forums.oracle.com

I would suggest you this design. Server.java -- Accepts the connections and forks a new MiniServer thread and keeps on listening to assigned port MiniServer.java -- Gets the socket object from the Server and does all the processing -- services all the request from the a given client socket and exits when the client wants to exit or after transmitting the ...

55. Help Needed Client Server Paradigm    forums.oracle.com

56. How do I implement a client with this server?    forums.oracle.com

57. Need sample Java utility to synchronise the timings on client and server    forums.oracle.com

The server creates a Date object which was at 00:00:00 on August 17, let's say. This is meant to represent just August 17. Then it sends the object to a client in a timezone two hours farther east, where the client interprets the Date object as 22:00:00 on August 16 and displays it simply as August 16.

58. Design Issue regarding server client    forums.oracle.com

Here's how I'd try to tackle it... Noting that these are just ideas... not a proven tested solution. On the client: 1. I'd have one thread listening for updates from server, and that's all. ... Each update request would be added to a queue, to be processed serially by another thread (producer/consumer). 2. The "send update" request to the server would ...

59. server client problem    forums.oracle.com

does this statement means that the client reads from its inputstream till the server closes it or that it reads till there is nothing in it? If the former is true then what should i do to read from the inputstrem till it is empty? i.e the server has finished sending data and is waiting for the client to send new ...

60. Server - client design issue    forums.oracle.com

I've been having a problem with the design of a server-client system. I want multiple clients to connect to a server. The client then sends SQL statements to the server which then performs the SQL operations on a database. The database is stored locally on the server machine. When a change is made from one client I want all the other ...

61. Server, client and printstream help    forums.oracle.com

I have created a simple webserver and what I would like to do is to parse the url the client is requesting and grab just the name. Then If the file does not exist then I want to run a java class that has the same name and send the output to the client printstream. I have tried everything and cant ...

62. Network instant messaging client    forums.oracle.com

Is your cousin behind a router or firewall? That can prevent you from reaching the server. If so, you may need to forward the port on the router or add an exception to the firewall on the server-side so that you can connect. By the way, I am only assuming this is the problem without looking at or trying your code, ...

63. Share code between Client side and Server side?    forums.oracle.com

Hello everyone, I am new here for second question. I have a project which create both web page on client and pdf file on server. Part of the methods are same. Now, I have 2 sets class respectively on server and client to do same thing, like pull data from oracle, construct the table, create chart image and so on. When ...

64. Client and server problem    forums.oracle.com

Hi everyone, I am relatively new to java. I am writing a client server application. The client requests an article from the server, the server retrieves it and sends it to the client. That part all works fine. However i want to be able to add new articles to the server and then update the client accordingly without recompiling the whole ...

65. java server html client?    forums.oracle.com

I have coded a small multi-thread server in java that can accept a string from a java applet process it and send back a processed string. I would like however to switch from a java applet to html client. Is it possible to have a java server and an html client? How can i send strings back and forth?

66. How can my client program call program located at server?    forums.oracle.com

Hi All, I have a client-server application. How can my client program call program located at server? At the beginning my program works as long as RSA Agentinstalled at client. So my program only call rsa library and communicate with RSA Agentby passing userid and passcode. Once RSA Agent receive it will send to RSA Managers to validate. But now my ...

67. user writes on console(client) and sent what was written to server    forums.oracle.com

Yeah it worked out:) Now I have this problem that I want the user to enter a path before the file chosen. For example if abc.txt is chosen the user enters c: abc.txt Now if the user enters an incorrect path I want to display a message that the file chosen not available or an incorrect path entered. My problem is ...

68. Client server app    forums.oracle.com

Hey, I was going to write a simple Instant messag program to communicate between people over the internet, and I was wondering. If I can going ot be sending information from one computer in NY, to another in NY, what should I use to connect the two machines?. a socket, a URLconnection... just looking for some quick advice. thanks.

69. How to get client machine's MAC address?    forums.oracle.com

Thanks for the response.... Currently we are using java script in JSP with Active X objects for getting the client machine MAC id , It is working fine IE browsers, but not in Mozilla and other browsers. Is there any other way to get the client machine's MAC Id by running any script with out using Active X objects? Or How ...

70. Java Client Server programming    forums.oracle.com

Hi, i have a question about the client server System. I have implemented in Java a simple client which send the request 5+5 to a web service in an Axis server, which answer with 10. I want to know how generally does the server fetch the ip address of the client ? I assume the socket on the server side does ...

71. Passing Array from Server to Client    forums.oracle.com

I can't find the answer that I am looking for anywhere on the forums. I don't even know if what I am trying to do is possible. I am attempting to take clientNames[], which is composed of various strings, and write it out to the client through output.writeObject(clientNames); (output as ObjectOutputStream) As far as I can tell, this is working just ...

72. how to create ,retrive server table from client    forums.oracle.com

You need to use a DB persistency tool such as Hibernate or EJB. This allows you to create POJO s (Plain Old Java Object) which has the getters and setters of the table fields. You need to have their configuration xml files (if you use EJB 3 or Hibernate 3 the annotations are enough). You also need at the server side ...

73. client server application    forums.oracle.com

try { System.out.println("Attempting to connect..."); clientSocket = new Socket(host.getHostName(), 12345); System.out.println("Connected"); out = new PrintWriter(clientSocket.getOutputStream(), true); in = new BufferedReader(new InputStreamReader(clientSocket.getInputStream())); //stdIn= new BufferedReader(new InputStreamReader(System.in)); SSSSSSSSSSSSSSSSSS System.out.println("Got I/O Streams"); } catch (UnknownHostException e) { System.err.println("Don't know about host"); System.exit(1); } catch (IOException e) { System.err.println("Couldn't get I/O for the connection to: Billy."); System.exit(1); }

74. client.policy/server.policy    forums.oracle.com

75. how to differentiate more than on client from the server side.    forums.oracle.com

Hello Frnds, My application is a client/server application. more than one client may communicate with the server. Different type of requests may raise from different clients. so the server has the ability to identify each client and send the correct msg according to the request which made from the client. how to do this? give me some idea. thanks.

76. 2 clients communicates between them through a server    forums.oracle.com

Yes I read it. But there does not say anything about communicate clients between them.It says about multiple clients but not about how to make them communicate between them. I want something like this: Cli1 say: hello client2, and Cli2 says Hi client 2 and so on, and if one of the clients steppes out the communication is interrupted.Any help???

77. Client server application    forums.oracle.com

78. Can server write to clients console directly    forums.oracle.com

Not directly. What you are want to do is to reverse the order of things - make the 'client' a server and the 'server' a client. Sure you can do that, but you will need a service on the 'client' machine that listens to a particular port and then pipes the commands it receives to the console. Windows used to have ...

79. Client Server Programming with ServerSocketChannel    forums.oracle.com

Hi friends.I must need a client server program with socket's.But I know doind this programs with serversockets.I have never used ServerSocketChannel before.My project must have a lot of InputStream and OutputStream to do my jop.Please show me A client server application which done with ServersocketChannel .I must examine it to do more complex.If you posted here a sample or complete code ...

80. Advanced Client Server Application    forums.oracle.com

Hi friends.I'm working on a client server application with java.It's about a game which can play beetven two computer.But it won't be so easy.Players can play game and at the same time talking to each other.Before I did a lot of game in java.I used a serversocket for server and did another things.I used a OBJECTOUTPUTSTREAM to write the moves of ...

81. Advanced Client Server Application    forums.oracle.com

I thought very much about it.I think I must use a thing lile listener whitch run as soon as objectoutput write to input. I'm waiting for your help.If you show a sample code about this subject I pleased very much. Good luck everone.Herkese iyi anslar.this explanation isn'about code and it's my own language. TRKE nsann ana dili gibisi yok.Bu aklamay Bataki ...

82. Getting client information from server    forums.oracle.com

How to get client information, such as ipaddress, OS version, domain using Jsp. If client gives a request to my web application, I need to know the OS, Ipaddress of client. How s this possoble? I want to know whether the client is using Linux or Windows.. Plz help me... Thanks in advance

83. multiuser java client server problem    forums.oracle.com

Hello! I am quite new to JAVA programming, but even now I feel, that possibilities of JAVA ar wow! Right now I am making my first client server application, but for more hours I have one problem with sockets. For wach user I call new My_Program(socket).start(); The question is - how can I retrieve information from one socket and give to ...

84. Client Server problem    forums.oracle.com

85. Open source SFTP Client    forums.oracle.com

87. client\server and objects    forums.oracle.com

88. Simple server and client application    forums.oracle.com

Im note sure if i am running it correctly or not, first i start the server driver (i assume the server remains running permanently?) and then i run the quote client and i get in the terminal Usage: java QuoteClient So with tracing through you can see args.length!=1 and i dont know what this means. I know this is a ...

89. Problem with server - multi client app    forums.oracle.com

Hi all, i've got a problem concerning a server application and several clients. The data is being send to both sides. when at a certain point a "client user", clicks on a table that selected item should be downloaded. a new thread is being opened , the objectout / in putstream is being send to the thread and file transfer is ...

90. Creating Client / Server    forums.oracle.com

91. Client Server    forums.oracle.com

Hello and good day! I have this client server program. What i want is that this server acts as the back-up repository server. Thus, all clients can simultaneously connect and send objects (FILE) and the server accepts it and saves it into the repository. Server class has this.. public void run() // i used threads.. { Socket s; while(true) { s=serversocket.accept() ...

92. Finding MAC address of clients computer    forums.oracle.com

93. Drive List from server to client    forums.oracle.com

94. Client Server question:Getting client responses in 2 locations, avoiding    forums.oracle.com

I have a client that holds all the connections. Then a GUI running inside the same VM can do specific on demand actions on some selected clients. I keep all the connections inside a Vector, then in the GUI when I want to send for example to a client a "ver" command the client should respond with his version. I implemented ...

98. Client - Server compatibility    forums.oracle.com

99. Server client prob..    forums.oracle.com

HI While i created a server (gui) and client (cui) side program for chat .. all of them working fine..but the problem is when the client send some strings to server textarea , i cant see it at that right time it sents when i press ctrl c in client side then that window appears on the screen... I think this ...

100. server client    forums.oracle.com

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.