Hello all. I was hoping the somebody could help me with this. I recently made a chat app with client and server works great on my local network. You know 2 or more clients connect to the server and chat.
However, I would like to beable to use the same app (if I can) so that a friend mine and myself can chat even though he is not connected to my network.
I tried just giving him my server info (IP and socket). I thought he might beable to connect thru his internet connection.
Anyway, it didnt work.....I am new to java and networking/internet connections thru java. So I know I must be missing somthing big.
When you say you are running your server in your own machine and you have given the ip and port of your server to your friend to connect then it's a must for you to have the ip of your server recognized over the internet. For that you should have a static ip setup for your server registering over the internet.
Ravens, welcome to the JavaRanch. We don't have many rules around here, but we do have a strictly enforced naming policy. In short, your displayed name must be a first name and last name, separated by a space and not obviously fake. You can change your name here. Thank you for your prompt attention.