You need to find something that can't easily be moved to attach the chain to. Like here in the office where there are two laptop cables looped around a desk leg, but you can lift the desk

and they just fall off.
The few times I've anchored something it's either been to the bed frame, which has the added benefit of keeping it out of sight.