I'm having trouble making my minecraft server?

While i was looking up how to make my minecraft server open to the public, i came aross the part where it said to type "ipconfig" into command prompt. I did exactly what it said yet heres the meddage it gave me.

"'ipconfig' is not reconized as an internal or external command, operable program or batch file"

can someone please help me?

You're probably somehow doing it wrong, maybe run it as admin then just type ipconfig