What is the difference between a hardware address and IPv4 address?

Hardware address is the MAC address.

IPv4 is the IP address.

The MAC address is assigned to each network device at the time it's manufactured and does not change.

The IP address is manually assigned and can be changed.