removed fsockopen as it's not needed, socket_bind can handle the error