you need socat installed on both your PC and your Raspberry Pi.
Launch the script send-info.sh on your Raspberry, it will broadcast its network information every 5 seconds on the network.
On your computer run the script listen.sh, it will receive the Raspberry broadcasted information.