Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 4th, 2012  |  syntax: None  |  size: 0.40 KB  |  hits: 11  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Connection through ip address
  2. System.out.println("get = "+get);     //get is where the ip address is stored after reading from file and it is successfully received as well
  3.   Socket client=new Socket(get,5000);
  4.        
  5. InetAddress ik= InetAddress.getByName(get);
  6.   Socket client=new Socket(ik,5000);
  7.        
  8. String get="192.168.1.224";
  9.        
  10. System.out.println("get = "+get.trim());
  11. Socket client=new Socket(get,5000);