import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.net.ServerSocket; import java.net.Socket; /* * To change this template, choose Tools | Templates * and open the template in the editor. */ /** * * @author NWaddington */ public class SimpleSocketClient { public SimpleSocketClient() { try{ Socket clientsock = new Socket("www.uclan.ac.uk",80); BufferedReader in = new BufferedReader(new InputStreamReader(clientsock.getInputStream())); }catch (IOException e){}; } /** * @param args the command line arguments */ public static void main(String[] args) { // TODO code application logic here } }