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 API06 Apr 2025

How do I create a proxy server using ProxySelector and Socket in Java?

Creating a proxy server using ProxySelector and Socket in Java involves a few steps. ProxySelector is used to determine which proxy to use for connections, while Socket facilitates communication with the client and/or the target server behind the proxy. Here’s a step-by-step guide: 1. Setup ProxySelector A custom ProxySelector can be created to define the […]

Wayan · 5 min read
CORE API / NOTES</>↗
Core API05 Apr 2025

How do I bind a server to a specific IP address using ServerSocket in Java?

To bind a ServerSocket to a specific IP address in Java, you need to use one of the constructors or methods that allows you to specify the local address and port to bind to. Here’s how you can do it: Example Code: package org.kodejava.net; import java.io.IOException; import java.net.InetAddress; import java.net.ServerSocket; public class ServerSocketBindExample { public […]

Wayan · 3 min read
CORE API / NOTES</>↗
Core API04 Apr 2025

How do I detect and list all network interfaces using NetworkInterface in Java?

To detect and list all network interfaces using NetworkInterface in Java, you can use the NetworkInterface.getNetworkInterfaces() method. This returns an Enumeration of all available network interfaces on the system. You can then iterate through this enumeration to fetch details of each interface, such as the name, display name, and associated IP addresses. Here is an […]

Wayan · 2 min read
CORE API / NOTES</>↗
Core API02 Apr 2025

How do I stream large files over a network using Socket in Java?

Streaming large files over a network using sockets in Java requires splitting the file into manageable chunks to avoid memory overhead, as well as safely reading and transmitting data between the client and server. Below is a step-by-step guide with code to demonstrate how to achieve this. Key Steps: Open a file stream to read […]

Wayan · 4 min read
CORE API / NOTES</>↗
Core API01 Apr 2025

How do I handle HTTP redirects in Java using HttpURLConnection?

Handling HTTP redirects in Java using HttpURLConnection is fairly straightforward. It involves processing the HTTP response code and manually following the redirection if the server responds with a 3xx status code. Here’s a step-by-step guide: 1. Set up the HTTP connection: Create a HttpURLConnection instance and configure it for the initial request. Set the allowed […]

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.