public static void main(String[] args) {
		InetAddress addr = null;
		String ip = null;
		int port;
//		String portString = JOptionPane.showInputDialog(null, "˿ :");
//
//		
//		if(portString!=null ){
//			port = Integer.parseInt(portString);
//		}
//		else{
//			port = 9090;
//		}
		port = 9090;
		try {
			addr = InetAddress.getLocalHost();
			ip=addr.getHostAddress().toString();
			System.out.println("ip:"+ip);
		} catch (UnknownHostException e) {
			e.printStackTrace();
		}
		
		Server server = new Server(port);
		server.start();
		Object[] options ={ "˳", "" }; 
		JOptionPane.showOptionDialog(null,  "ip:"+ip+"   ˿:"+port, "[´] ̹˴ս",JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE, null, options, options[0]);
		clientAccept.close();
		server.close();
		System.out.println("ѹرգ");
		System.exit(0);
		
		
	}