Have pain on outside middle of right thigh, mainly at night for months. Very hard to get comfortable to sleep. I drive a lot, what to do?

Nerve Impingement. The symptoms you describe are suggestive is nerve impingement. Over the counter medications can sometime help but you should see your doctor to accurately find the cause.
Try some stretches. Your symptoms could be from trochanteric bursitis with it band tightness, or spinal pathology. Try some over the counter nsaia meds with some it band stretches (web search for these). If a few weeks of stretching and meds don't help, get checked by someone with xrays, and consider some therapy or other treatment recommended by your physician based on what s/he finds.