Something is coming out of my penis

my penis is paining me

could u give a bit more detail or post a photo

if u have a discharge coming out and have had sex recently u may have gonorrea or chlamydia if not u may just have urethritis caused by a urinary tract infection

it's white in color and it inching me sometimes

how can I get rid of it

it may be chlamydia or urinary tract infection u would have to go have some tests urine sample and they will give u antibiotics depending on what is causing it it sounds like chlamydia