5 Replies Latest reply on Feb 23, 2007 4:11 AM by 807597

    socket connection

      Hello friends ,Respected teachers ..
      I have made chat application .It is working fine with local intranet. I used the
      Socket s=new Socket(,1005); for creating server side socket in client program. But when I host the aplication on a server ( I have a server at US .) then what should be specified as InetAddress in Socket's constructor in client program to make it work smoothly ?Server program is working fine on my US server as I just created Serversocket and called its accept method.
      How to make connection with live server ? I tried to give its static IP in sockets constructor at client program but its not working .Chat server in US is unable to identify any chatClient .
      Can anybody plz help me on this....
      Thanks and Regards
        • 1. Re: socket connection
          Can you ping your server machine from your client machine? Are there firewalls between these machines?
          • 2. Re: socket connection
            Thanks for reply..I tried pinging my machine with the server it gave Request time out for 2-3 times approx and console got closed automatically.....Regarding firewall there is no firewall between server and client.
            so what conclusion can be drawn from this..any idea ?
            Thanks and Regards.
            • 3. Re: socket connection
              If you can't ping the server the problem is not your Java program, its in the network. Is one or both of the addresses in one these address ranges?


              If so its a private and is not visible over the internet.
              • 4. Re: socket connection
                Sorry for replying late....here we had net problems so was unable to reply....
                Thanks very much for u r response..It helped me a lot and now I have solved the problem coz of u r help..
                Thank you
                • 5. Re: socket connection
                  i just read that u hav created chat appli for local intra net can u please tell me wer shud i start i want to create chat application? thanks