private void initialiseConnection() throws IOException,
			InterruptedException
	{
		try
		{
			incoming = bindSocket(DEFAULT_PORT);
		}
		catch (BindException e1)
		{
			log.debug("Master already runninng!");
			incoming = bindSocket(0);
		}
		alreadyRunning = true;
		log.debug("Listener started as [" + name + "]");

		if (child)
		{
			registerChild();
		}
		else
		{
			register.put(name, new Integer(port));
		}
	}