Ok, so my problem seems basic but I really have no idea how to fix this.

Basically, when I run my java server on my machine, and give my buddy my java client... he cannot connect to my server. The reason being is my computer is behind a router. I know my LAN IP, and I know my WAN IP... how do I get it so that I can have him connect to my computer and port, through my router?For example, router is IP "123.123.123.123", my server is on my machine with IP and port: "123.123.123.1: port 1234". My buddy has the client that is trying to connect to my machine on the port 1234... how do I get him to do this through my router? I've done some research and apparently "port-forwarding" is required. How do I do this?Can someone also please type up an example or a link to a good example? Has anyone come through this problem before? Thank you for reading!

Ok. So I finally got my Client to connect to my Server through my router using port-forwarding. But for some reason, I can't send a message, or should I say, my server can not receive a message. Why not?

Ok. So it's kind of a weird problem. I can send messages very easily locally. But when I try and send a message externally (through my router), and can connect with the socket but can't pass messages through it. Or it sends a message, and my router is not sending the message to my server...

And I've already set up the router so port forwarding works. Anything that comes in on port 80 is forwarded to my computer's port 19999. I've even opened my port 19999 as well on my computer (so no firewall should be there). What the heck is the problem then?

java-gaming.org is not responsible for the content posted by its members, including references to external websites,
and other references that may or may not have a relation with our primarily
gaming and game production oriented community.
inquiries and complaints can be sent via email to the info‑account of the
company managing the website of java‑gaming.org