How can i create a server while on a shared connection?

i really want to know if i can. because, im trying to create a server on games, but nobody can join, and i made sure it was not LAN