Hi,
It can be firewall settings, it can be ACL on routers, it can be NAT, in fact it can be a lot of things.
If you don't explain your topology and who are A and B we can't really tell where the problem comes from.
Regards.
Alain.
Don't forget to rate helpful posts.