In this screen during the set up, i had to enter different port numbers than the ones written. It said that those ports were taken. So i guess that is why i had to enter ip addresses with port numbers. I uninstalled pihole before installing adguard home, so i have no idea why these ports were taken. I am not really a network specialist to be honest.
