I've just tried to learn a little about networking so I watched VanZeben's Game Engine tutorials and I understood the basic of it. The only thing I'm struggling with is how I can use it outside my own network. Right now I've got it set so it uses my computers IP in my houses network (LAN)

DatagramSocket code:
Java Code:
this.socket = new DatagramSocket(Main.PORT,InetAddress.getLocalHost());
Main.PORT is of course the port I want and the InetAddress.getLocalHost() return my computers ip in my network as I have understood (192.168.1.XXX). But I want to be able for someone on the other side of the planet to join my server if possible (I have port-forwarded). If anyone could be kind and help me that would be appreciated.

If you need more information just ask.