S2S connection with IP's

I am trying to get a S2S connection and what I have seen in the discussions are that in order to do this, need DNS. My network uses multiple nodes, and each node have Openfire server on it. I want to get S2S connections, and I do not use DNS at all nor will I. Is this possible to do?

I would also like to add port 5269 is open.