public void server()
	{
		
						try
						{
						String rr="";
						socket_1=server_1.accept();	                                   
						DataInputStream dis=new DataInputStream(socket_1.getInputStream()); 
						int length=dis.readInt();
						String destination=dis.readUTF();
						while(length>0)
							{
								rr=dis.readUTF();	
															
							if(destination.equalsIgnoreCase("R-101"))

							{
								
								jTextArea1.append("Packet "+i+"\t"+rr+" Recieved...\n");
							}
								
							
							else if (destination.equalsIgnoreCase("R-107"))
							{
							
								jTextArea2.append("Packet "+i+"\t"+rr+" Recieved...\n");
							}
							else 
								JOptionPane.showMessageDialog(null,"No Packets Received");
								length--;
								i++;
							}
							i=1;
							
						}
						catch (Exception exp)
						{
							exp.printStackTrace();
						}
						
					
					
	
	}