Open the door to the point where you want it to stop. Make sure the door knob doesn't strike the wall.
Mark the floor with a pencil at the corner of the open door, where the side of the door being stopped and the outer edge meet.
Close the door.
Measure 2 inches toward the closed door, using the original mark as the reference point. Make another mark here. This is the contact point for the floor stop's bumper and the door.
Adjust the position of the floor stop as necessary to ensure the floor stop's bumper and the hinge-side face of the door meet at the contact point. Some models feature bumpers that protrude from the body of the floor stop, while others have bumpers that lie in the center of the floor stop.
Attach the floor stop according to manufacturer's instructions.