[IP Addresses] What IP do I use for a server?

Sorry about the lack of info in the title. I couldnt figure out a way to word it without it scaring off people. This question Isn’t really networking related but more of just a problem that I am having trouble trying to work out in my head.

Anyways, I’m learning a little bit of KryoNet and I was trying to think of how I’m going to make this server. If I wanted people to just log into the game and instantly join the server I’d have to host the server on my own computer. Now here’s the problem:

[quote]What IP Address do I use?
[/quote]
I have only used localhost for all my test servers and that won’t work for a game server. So, what do I do? Do I have to buy a web host thing and use that? Do I have to get my own IP and just put that in?

I really am just confused about this strange thing called Networking. :stuck_out_tongue: