modified to do binding for raw socket