LanguagesThe one-class server

The one-class server

Developer.com content and product recommendations are editorially independent. We may make money when you click on links to our partners. Learn More.


This article presents a tidy way to quickly implement a simple TCP/IP server. The core of the code exists in a single class, Server.java, so it’s easy to set up and use.

The structure of Server.java is simple. It listens on a

Get the Free Newsletter!

Subscribe to Developer Insider for top news, trends & analysis

Latest Posts

Related Stories