Avoid SharedArray failures if IP changes

Fix #6171