Blocking literal IP addresses and calendars act independently. I.e., a site is blocked if it’s blocked by either the literal IP rule or a calendar.
You can leave “Block literal IP addresses” unchecked for the iPad, without worrying about the ports. The “literal IP” rule is needed only when a kid knows what a hosts file is and manually enters an entry in the hosts file. There’s no place to add a hosts entry on an iPad.