public Server(String hostname, int port) throws IOException
	{
		server=new ServerSocket();
		
		if(hostname==null)
		{
			//hostname=InetAddress.getLocalHost().getHostAddress();
			System.out.print("hostname:port| ");
			hostname=getInput();
			port=new Integer(hostname.substring(hostname.indexOf(':')+1));
			hostname=hostname.substring(0,hostname.indexOf(':'));
		}
		server.setReuseAddress(true);
		server.bind(new InetSocketAddress(hostname,port));
		System.out.println("server bound to: "+server.getInetAddress());
		clients=new HashMap<Socket,Client>();
	}