Treatment for a limping dog depends on the underlying cause (which needs to be diagnosed by a veterinarian), but there’s a few things you can do to help your dog be more comfortable in the meantime.
A few days of rest with minimal exercise (especially avoiding any running, jumping and going up or down stairs) helps. Abstaining from playing and avoiding slippery surfaces such as hardwood floors is also a good idea. Keep your dog calm and if necessary, crate them to prevent any further injury.
Shorter, less intense walks on a leash are recommended. Gradually re-introduce exercise and running once the limp has resolved, especially since your dog may have pent up energy from the lack of exercise. It’s best to run or jog with your dog on a leash for a few days before letting them off the leash.
Do not give Ibuprofen or other human over-the-counter medication to your dog, as these can be toxic. Your vet may prescribe nonsteroidal anti-inflammatory medications (NSAIDs) specific for dogs to relieve pain and inflammation (do not use a human version of this without a vet’s input, as they commonly cause gastric ulceration and serious adverse reactions in dogs).
Puppies can be very dramatic in their response to pain (even mild pain). They will be acutely restless and whining when injured – keep them calm and wait about 15 minutes to see if limping still persists.