About 246,000 results
Open links in new tab
  1. Socket Programming in Java - GeeksforGeeks

    Jan 3, 2025 · Socket programming in Java allows different programs to communicate with each other over a network, whether they are running on the same machine or different ones. This article describes a very basic one-way Client and Server setup, where a Client connects, sends messages to the server and the server shows them using a socket connection.

  2. Lesson: All About Sockets (The Java™ Tutorials - Oracle

    Socket classes are used to represent the connection between a client program and a server program. The java.net package provides two classes--Socket and ServerSocket--that implement the client side of the connection and the server side of the connection, respectively.

  3. Socket Programming - Tpoint Tech - Java

    Mar 17, 2025 · Java Socket programming is used for communication between the applications running on different JRE. Java Socket programming can be connection-oriented or connection-less. Socket and ServerSocket classes are used for connection-oriented socket programming and DatagramSocket and DatagramPacket classes are used for connection-less socket programming.

  4. A Guide to Java Sockets - Baeldung

    Nov 29, 2023 · This tutorial presents an introduction to sockets programming over TCP/IP networks, and demonstrates how to write client/server applications in Java. UDP isn’t a mainstream protocol, and as such, might not be encountered often.

  5. Java Socket Programming - Socket Server, Client example

    Aug 3, 2022 · In java socket programming example tutorial, we will learn how to write java socket server and java socket client program. We will also learn how server client program read and write data on the socket.

  6. Socket Programming in Java - Online Tutorials Library

    Java Socket Programming - Learn Java Socket Programming with examples and detailed explanations. Understand client-server communication using Java networking concepts.

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

    Nov 13, 2017 · In this Java network programming tutorial, you will learn how to develop a socket server program to implement fully functional network client/server application. You will also learn how to create a multi-threaded server. First, let’s understand about the workflow and the API. 1. ServerSocket API.

  8. Java - Socket Class with Examples - Java Networking - W3schools

    In computer networking, a socket is like that phone – it's the endpoint of a two-way communication link between two programs running on a network. The Java Socket class represents a client-side socket. It's part of the java.net package and provides a way for programs to communicate with other programs across a network.

  9. Java Socket Programming - Java Code Geeks

    Jun 30, 2020 · Java Socket Programming finds itself very useful for peer-to-peer communication between two Java programs running different JVM. It works on a typical request/response model where-in a java program called client invokes another program called as a …

  10. Socket Programming in Java: A Comprehensive Guide - Java

    Oct 2, 2023 · Java, with its robust networking capabilities, provides developers with a powerful toolkit forSP. Whether you’re building a chat application, a file transfer system, or a real-time game, sockets will be your go-to tool for enabling communication between clients and servers.

  11. Some results have been removed
Refresh