in reply to Re: Intercepting UDP broadcasts
in thread Intercepting UDP broadcasts

If you run the code as non-root, creating the socket fails. Non-root processes can't bind to ports less than 1024.

Abigail

Replies are listed 'Best First'.
Re: Re: Intercepting UDP broadcasts
by traveler (Parson) on Jan 31, 2004 at 00:22 UTC
    Not to nit-pick, but non root users can bind to ports less than 1024 on Linux if they have the appropriate capability (CAP_NET_BIND_SERVICE) set. I think Solaris has a similar capability, but I don't have the docs here.

    --traveler