Help! UTI?

Ok so i randomly got what felt like a UTI today(urge to pee, bladder pain) but it went away within 6 hours after taking some advil, taking a hot bath and drinking hot tea. Has this ever happened to you(random "UTI" sensations)? And is this a UTI or something else????