@SuppressWarnings("resource")
	public void run()
	{
		try
		{
			ServerSocket listener = new ServerSocket(sc.getPort());
			
			while (!sc.isConnected())
			{
				Socket s = listener.accept();
				sc.setConnection(s);
				sc.chatLogWrite("Connected to: " + s.getInetAddress().getHostAddress());
			}
		}
		catch (BindException e)
		{
			//No more BindException C:
			e.printStackTrace();
			System.err.println("I'm using port number:" + sc.getPort());
		}
		catch (IOException e)
		{
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}