Thankyou Steve for your explanation. BTW using the interface name (em2 on my system) still doesn't work and the program ends with a slightly different error: Segmentation fault (core dumped) So my only choice is to use the ip address/network address method. Rgds, Roberto