The Zabbix agent listens on port 10050/TCP. With passive checks the Zabbix server queries the agent there; with active checks the agent connects to the server itself on port 10051. So the server needs 10051 inbound, while the agent host needs 10050 only for passive checks.
Do not expose it publicly: in zabbix_agentd.conf allow only the IP of the Zabbix server (or proxy) with Server=, restrict 10050 to it by firewall, and use encryption with PSK or certificates (TLSConnect, TLSAccept) over internet links.
Typical: the host shows as "not available" because 10050 is blocked, the agent is not running or the server IP is missing from Server=. Test from the server: zabbix_get with the key agent.ping returns 1.
Check
zabbix_get -s host.example.com -p 10050 -k agent.ping