About 14,300,000 results
Open links in new tab
  1. Sending a request to a server java - Stack Overflow

    Jan 6, 2013 · With these changes, you will be able to request a file list and present the response of files that the server sends. When the user picks a file to receive, the client can send a new …

  2. Java Sockets - Sending data from client to server

    Oct 17, 2015 · My objective: send a local variable from the client program to the server program. I have the client and server connected, and I know how to send string messages from the client …

  3. java - Using Sockets to send and receive data - Stack Overflow

    the easiest way to do this is to wrap your sockets in ObjectInput/OutputStreams and send serialized java objects. you can create classes which contain the relevant data, and then you …

  4. How to Create a simple TCP Client-Server Connection in Java?

    Apr 4, 2024 · In Java, we can create TCP client-server connections using the Socket and ServerSocket classes from the java.net package. In this article, we will learn how to create a …

  5. Establishing the two-way Communication between Server and Client in Java

    Oct 14, 2019 · It is possible to send data from the server and receive a response from the client. Similarly, the client can also send and receive data to-and-from. Below are the various steps to …

  6. Reading from and Writing to a Socket (The Java™ Tutorials > …

    Let's look at a simple example that illustrates how a program can establish a connection to a server program using the Socket class and then, how the client can send data to and receive …

  7. Transfer the File “Client Socket to Server Socket” in Java

    Aug 31, 2022 · This article describes a one-way client and Server Setup where a client connects, and sends the file to the server and the server writes the file in another location with a different …

  8. Java Socket Server Examples (TCP/IP) - CodeJava.net

    Nov 13, 2017 · Send data to the client: Use the OutputStream associated with the Socket to send data to the client, for example: OutputStream output = socket.getOutputStream(); As the …

  9. An In-Depth Guide to Transferring Files from Client to Server

    Jan 5, 2023 · To send data from a client to a server using a socket, you can use the send() method on the client side and the recv() method on the server side. How will you achieve …

  10. Socket Programming in Java | Sending Text Files Between Server and Client

    Jul 3, 2017 · In order to understand socket programming in java and how to send text files between server and client, you need to first comprehend the basics of networking. You see …

Refresh