To know the real cause of the pain in your leg bone is to remember what happened to you over the course since the pain has started. It can be possible that you have done some excessive exercise, work hard on any project such as construction related work or have twisted your leg or even your foot. Note down all these details. This can help you identify the real cause of the pain.
If you think the pain is not severe and it might die away gradually, you can treat it with some home remedies such as massage of the area with pain relieving lotion etc. If you know the cause is serious and the pain might not go easily, better avoid home remedies.
Whether or not you know the cause of pain in your leg bone, it is better to see your doctor immediately. Leaving yourself in pain can cause serious damage to bone of your leg, especially if you do not know the real cause behind the pain. Share all details with your doctor about the pain i.e. how and when it started, and if you know the reason why it started. The doctor should be able to know the actual cause of the pain, without an X-ray, based on your information.
Implement the entire treatment regime that the doctor has recommended to you. Do not leave the treatment halfway through, even if the pain is relieved. In case of arthritis, the pain can be chronic, so better take the medication process seriously.