SupportWriter space ↗
REFERENCE LIBRARY

References from other publishers

Republished articles with source attribution. This collection is separate from Diary Coding’s original guides and does not display ads.

Read original guides → · Editorial policy

FOR YOUR CURIOSITY

Latest notes.

CORE API / NOTES</>↗
Core API31 Mar 2025

How do I check internet connectivity and ping a server using InetAddress in Java?

You can use Java’s InetAddress class to check internet connectivity and ping a server directly. Here is how you can do it: Steps to check internet connectivity and ping a server: Use InetAddress.getByName(String host) or InetAddress.getByAddress(…) to get the address of the host/server you want to ping. Use the isReachable(int timeout) method to test if […]

Wayan · 2 min read
CORE API / NOTES</>↗
Core API29 Mar 2025

How do I use CookieManager and CookieHandler for HTTP Cookie handling in Java?

In Java, the CookieManager and CookieHandler classes from the java.net package are used for handling HTTP cookies. They allow you to manage cookies for actions such as sending cookies with HTTP requests or maintaining sessions between HTTP communications. Steps to Use CookieManager and CookieHandler Set a Global CookieManager: The CookieHandler class is an abstract class, […]

Wayan · 3 min read
CORE API / NOTES</>↗
Core API28 Mar 2025

How do I implement secure socket communication with SSLSocket and SSLServerSocket in Java?

To implement secure socket communication using SSLSocket and SSLServerSocket in Java, you need to utilize the Java Secure Sockets Extension (JSSE) API, which provides support for the SSL/TLS protocols. Below is a step-by-step guide: 1. Key Concepts SSL/TLS provides encryption and ensures secure communication between a client and server. You need: A keystore on the […]

Wayan · 4 min read
CORE API / NOTES</>↗
Core API27 Mar 2025

How do I perform multicast communication using MulticastSocket in Java?

In Java, multicast communication is performed using the MulticastSocket class, which provides the ability to send and receive data packets to and from a group of interested processes (also referred to as a multicast group). Below is a brief explanation and an example of how you can achieve this: Steps for Multicasting Communication with MulticastSocket […]

Wayan · 3 min read
✳

Knowledge grows when shared.

Stay curious. There is always something new to learn.

Explore notes ↗
Putu Adi Guna Permana
ABOUT THE AUTHOR

Dr (C). Ir. Putu Adi Guna Permana, S.Kom., M.Kom., IPM., ASEAN Eng.

Writer and founder of Diary Coding — sharing notes, tutorials, and experiences about programming for anyone who wants to keep learning.