Ok, ive tried just about everything i can involving this and for some wierd reason its not working.
I created a servers socket like so
ServerSocker s1 = new ServerSocket(9999);
but when i print out the toString method of s1, it shows that the Adress of it is 0.0.0.0.0 which strikes me odd… so then i try using the other ServerSocket Constructors to assign it an internet adress.
I did this like so
ServerSocket s1 = new ServerSocket(9999,10,InetAddress.getLocalHost());
Ok, this seemed logical, but It turned out the getLocalHost() method referred to my IP adress on my network, rather than my Internet IPaddress… I even tried using the getByName() method passing my Internet IP adress as a parameter and of course i got an exepton on this Java.Net.BindExeption… Im pretty stumped here, im just trying to run a simple program where an applet connects to the Server and the server returns the number of people connected to it, ive got everything else working except the fact that its not working over the internet because of these problems… if anyone could help i would really appreciate it…
-me-