connect two nodemcu wire

While you're receiving a data so the connection of pins have no problem.

Your problem in how to get a right value from the master.

You can replace

if (Serial1.available()) {
    int inByte = Serial1.read();
    Serial.write(inByte);
  }

with

 if (Serial1.available() > 0) {
    String inByte = Serial1.readString();
    Serial.println(inByte);
  }

mi_ds:
While you're receiving a data so the connection of pins have no problem.

Your problem in how to get a right value from the master.

You can replace

if (Serial1.available()) {

int inByte = Serial1.read();
    Serial.write(inByte);
  }




with 



if (Serial1.available() > 0) {
    String inByte = Serial1.readString();
    Serial.println(inByte);
  }

yes it worked just fine
now I want to make a name and a serial number to every IDs.

You trying to do a numeric count per reading, True? If yes. Then you've to use for{} loop to create an integer and printing it.

if (Serial2.available())


 
  IDES = Serial2.read();
  Serial.write(IDES);

if ( String(IDES) == " 13 75 6C ED" ) {
    Name = "First Student " ;
    Number = "1" ;
  }

You are reading one byte at a time (storing it in int IDES) then you expect that 4 hexvalues are stored in IDES and start comparing it, what makes you think it would work ?
2 issues, first if " 13 75 6C ED" is the string that shows up in the Serial monitor and you want to compare that then

if (Serial2.available()) // something has been received
  {  
  String ID="";
  while (Serial2.available()) {  // while there is something in the buffer
    char c = Serial2.read(); 
    Serial.write(c); // echo
    ID += c; // add to the String
    if (!Serial2.available()) {  // if the buffer is empty wait for at least 1 more byte
       delayMicroseconds(1200);  // for BAUD 9600
       yield();
    }
  }  
  if ( String(ID) == " 13 75 6C ED" ) {   // and now start to compare
    Name = "First Student " ;
    Number = "1" ; 
  }
}

at least reads all characters that are and may become available to the buffer (issue 1) and store all of them in a String which can be compared (issue 2) '
Using readString() would read you a whole String in one go but then you should wait for a complete string to have arrived. Of course this code is a blocking form of Serial reception. But can work as proof of concept comparing " 13 75 6C ED" also compares the presence of the spaces. (is this the exact String ?)

Sorry to bother you
but I write code to send the ID to Wamp server

everything is fine but the nodemcu don't send the data to the webserver

#include <ESP8266WiFi.h>     //Include Esp library
#include <WiFiClient.h> 
#include <ESP8266WebServer.h>
#include <ESP8266HTTPClient.h>
#include <SPI.h>
#include <SoftwareSerial.h>
SoftwareSerial Serial2 (13,15); 


/* Set these to your desired credentials. */
const char *ssid = "My network";  //ENTER YOUR WIFI SETTINGS
const char *password = "Mypass";

//Web/Server address to read/write from 
const char *host = "1My host";   //IP address of server

String getData ,Link;
String CardID="";

void setup() {
  delay(1000);
  Serial.begin(115200);
  Serial2.begin( 115200 );
  SPI.begin();  // Init SPI bus


  WiFi.mode(WIFI_OFF);        //Prevents reconnection issue (taking too long to connect)
  delay(1000);
  WiFi.mode(WIFI_STA);        //This line hides the viewing of ESP as wifi hotspot
  
  WiFi.begin(ssid, password);     //Connect to your WiFi router
  Serial.println("");

 if(WiFi.status() != WL_CONNECTED){
    WiFi.disconnect();
    WiFi.mode(WIFI_STA);
    Serial.print("Connecting to ");
    Serial.println(ssid);
    WiFi.begin(ssid, password);

  while (WiFi.status() != WL_CONNECTED) {
    delay(500);
    Serial.print(".");
  }
    Serial.println("");
    Serial.println("Connected");
    Serial.print("IP address: ");
    Serial.println(WiFi.localIP());  //IP address assigned to your ESP
  }}

void loop() {
  

   if (Serial2.available()) // something has been received
  { Serial.write (Serial2.read()); 
  CardID = Serial2.read();
  
  
  
  HTTPClient http;    //Declare object of class HTTPClient
  
  //GET Data
  getData = "?CardID=" + CardID;  //Note "?" added at front
  Link = "http://My_host/loginsystem/postdemo.php" + getData;
  
  http.begin(Link);
  
  int httpCode = http.GET();            //Send the request
  delay(10);
  String payload = http.getString();    //Get the response payload
  
  Serial.println(httpCode);   //Print HTTP return code
  Serial.println(payload);    //Print request response payload
  Serial.println(CardID);     //Print Card ID
  
 
  CardID = "";
  getData = "";
  Link = "";
 http.end();   //Close connection
  
  }}

So eh the wire connection between the 2 nodeMCU's works ? great ! this seems like a completely different issue. You should start a new topic. And when you do, please don't this

   if (Serial2.available()) // something has been received
  { Serial.write (Serial2.read()); 
  CardID = Serial2.read();

a curly brace should not have code behind it on the same line.

 http.end();   //Close connection
  
  }}

do not put more than 1 curly brace on a line and have them on a line by them self. It is difficult enough reading someone else 's code without these sort of things.

Deva_Rishi:
So eh the wire connection between the 2 nodeMCU's works ? great ! this seems like a completely different issue. You should start a new topic. And when you do, please don't this

   if (Serial2.available()) // something has been received

{ Serial.write (Serial2.read());
  CardID = Serial2.read();


a curly brace should not have code behind it on the same line.

http.end();  //Close connection
 
  }}


do not put more than 1 curly brace on a line and have them on a line by them self. It is difficult enough reading someone else 's code without these sort of things.

yes it worked perfectly
Thanke you