I just don’t think what you are doing is even possible. I really think you should spend $10 on a second ethernet card and be done with it. each install of openfire can have their own DNS entry and IP with no port conflicts. If you want to go to an extreme setup a virtual machine to take care of it.
I think that the problem is that both server openfire are on same ethernet card 10.11.9.1;
Do you know how I can do for “install” server1 on ethernet 10.11.4.29 and server2 on ethernet 10.11.9.1?
Now, users prova1 and prova2 are logged because I change the ports of their clients and on their server: 5222 to 52221 and 52222 respectively, but I think that it’s wrong because both users must be logged with same port 5222, because the 2 server openfire must be indipendent (each one is on his ethernet card).
Ok to set each instance to a particular interface edit thier openfire.xml files
I would not mess around with the server listening ports unless you are going to setup SRV records in DNS to resolve to the changed ports as it will be a client support nightmare.
that should be fine depending on your OS environment. The nics must be unlinked and have priority set in windows so the DNS treats them as independent cards with distiquished entries in DNS. You also can manually set card priority so they always are the right NIC order for the system. The default settings do not guarantee this.