Computing: Free Pascal Programming

Simple LAN messaging client-server application.


Download LANMsg desktop application (Windows 64bit) Download LANMsg source code (Lazarus/Free Pascal)

Description: LANMsg is a simple networking application that, on a local TCP/IP network, allows to send messages from one computer to another. The messaging system is implemented as client-server application, i.e. the different computers (clients) connect to one specific machine (the server). If they send a message (to another client, or with v2.0 to all other clients), the message is actually send to the server, which then relays it to the destination.
LANMsg started as a very simple application, that was never really intended to be available as download here. In fact, it just was the client and server examples of my tutorial Introduction to network programming using Lazarus/Free Pascal. As there seems to be a rather great interest in the source code, and as the samples actually are fully functional applications, I decided to place source and executables together with my other applications. With the release of the new version 2.0, LANMsg has somehow become a "real application".

Change log:
    Version 1.0 (December 2023): Original program.
    Version 2.0 (May 2025):
      - IP address and port validity check.
      - Server log with time stamp + saving at shutdown/exit.
      - Client identification by user name.
      - Messages relayed to specific client or all clients.

The original version of the application is still available on my site; click the following link to download LANMsg 1.0.

Free Pascal features: Lazarus network programming, Lazarus client-server applications, Lazarus TCP/IP applications. Usage of the lNET package, usage of the TLTCPComponent class. Connecting to a server application, sending data between a client and a server application.

Screenshots (version 1.0):

Simple LAN messaging application v1.0: Server
Simple LAN messaging application v1.0: Client

Screenshots (version 2.0):

Simple LAN messaging application v2.0: Server
Simple LAN messaging application v2.0: Client

If you like this application, please, support me and this website by signing my guestbook.