Skip to content
A minimal Fortran TCP client and server
Fortran Makefile
Branch: master
Clone or download
Latest commit 4db6021 Oct 30, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE Initial commit Oct 28, 2019
Makefile first commit Oct 28, 2019 Update Oct 30, 2019
client.f90 first commit Oct 28, 2019
mod_dill.f90 first commit Oct 28, 2019
server.f90 first commit Oct 28, 2019


A minimal TCP client and server in Fortran, used to teach interoperability with C. Companion code for Chapter 11 of Modern Fortran: Building Efficient Parallel Applications.

It uses libdill as a sockets library.

Getting started

Download and build the code:

git clone
cd tcp-client-server

Running the server

In one terminal window, run the server:

 Listening on socket:
   IP address:                                    
   Port:         5555

Running the client

In another terminal window, run the client:

                    5 Hello 

On client connection, the server will report:

 New connection from
You can’t perform that action at this time.