Simon, It's built and works on my test sockets program. My next job is to the one line change in SocketPrim.hsc and the one line change to make sure the right header file is included which contains the definition of IP_TTL. Many thanks for all your help, Dominic.