Dear Ralph, Michael, Mark, Kay, Dirk, et al.
FIrst of all thank you again for all recommendations. I am going to try to explain which configuration does work and which doesn't.
I have check the following in two different virtual Machines, One Fedora 26, and the other one CentOS7. In both everything works exactly the same.
config 1. CentOS7 (both EPICS 3.14.12.6 and 3.15.5)
I run 2 IOCs without any specific epicsEnv configuration (as some of you recommended), and I open a new console and I run caget, for reach 2 different PVs from the different IOCs. caget does not find any PV. Then I configure the EPICS_CA_ADDRS_LIST=127.0.0.1 or 10.0.2.15, and it only works for the last one executed. Right. Now I check with wirshark and netstat, and I can see that both IOCs are sending beacon messages from 10.0.2.15, so I suppose that if I configure EPICS_CA_ADDR_LIST=10.0.2.255 (this is the broadcast address of that private subnet of my computer) it should work, but it doesn't. the messages are:
[dsanz@localhost ~]$ export EPICS_CA_ADDR_LIST="10.0.2.255"
[dsanz@localhost ~]$ caget dsanzHost:ai1
Warning: Duplicate EPICS CA Address list entry "
10.0.2.255:5064" discarded
Channel connect timed out: 'dsanzHost:ai1' not found.
[dsanz@localhost ~]$ caget pcounter
Warning: Duplicate EPICS CA Address list entry "
10.0.2.255:5064" discarded
Channel connect timed out: 'pcounter' not found.
Then I try with 127.255.255.255 and !IT WORKS!
[dsanz@localhost ~]$ export EPICS_CA_ADDR_LIST="127.255.255.255"
[dsanz@localhost ~]$ caget pcounter
pcounter 0
[dsanz@localhost ~]$ caget dsanzHost:ai1
dsanzHost:ai1 6
Mark,
regarding EPICS_CA_AUTO_ADDR_LIST set to NO, I have try without configuring it, and it works, I put both YES or NO, and it works. I do not know if this should be work in this way or not... but it is absolutely the same, even if you put EPICS_CA_AUTO_ADDR_LIST="come to ICALPECS2017" :)
Well, if 127.255.255.255 works, but 10.0.2.255 doesn't, I thought to configure the 2 IOCs with EPICS_CAS_INTF_ADDR=10.0.5.15... and then I configure the client with EPICS_CA_ADDR_LIST=10.0.2.255 (broadcast IP address) but in this way it neither works.
Then it looks, that is crucial the loopback interface for this configuration?
Thank you very much to everybody, I hope this questions help other people too.
Regards
Diego