Updated script to get localmack adress