For every system which is connected to internet has an IP address associated with it. There are basically two types…