Since $4 is the host returned by the server, which contains no wildcards, I see no use for the w-switch.