- use inet_ntoa instead of inet_addr, so that an error is different from a possible return value - add "-b" option, to switch on SO_BROADCAST (to allow sending broadcasts)