Esp8266 client server network not allowing other devices to view it's data

Apologies if my question is not clear but here is my problem. I have an esp8266 client connected to sensor that sends its data continuously to the server. I want to connect another client that should receive the data, from from server. Trouble is I’m unable to even view the browser where I should be able to see the data let alone connect another client. Does this mean I have to disconnect the client completely for other devices to view? Does not sound very optimum?

"Trouble is I'm unable to even view the browser where I should be able to see the data let alone connect another client. Does this mean I have to disconnect the client completely for other devices to view? Does not sound very optimum?"

If you cannot connect to the server with a browser, then maybe it is a server issue. Not enough information to figure out what you are doing.

This is the code that i’m working with:

Server side

#include<ESP8266WiFi.h>
#include<ESP8266WebServer.h>

char *ssid="YourNetworkName";
char *pass="123456789";
int value=6;
int safe=1;

ESP8266WebServer server(80);

void root1();
void Update1();
void safety();

void setup()
{ 
  pinMode(LED_BUILTIN, OUTPUT);
  WiFi.mode(WIFI_AP);
  WiFi.softAP(ssid,pass,1,6);
  
  IPAddress ip(192,168,1,15);   
  IPAddress gateway(192,168,1,254);   
  IPAddress subnet(255,255,255,0);
  WiFi.softAPConfig(ip, gateway, subnet);
  
  Serial.begin(115200);
  delay(10);
  Serial.println("starting");
  Serial.println("IP  :");
  Serial.println(WiFi.softAPIP());
  server.on("/", root1);
  server.on("/update", Update1);
  server.on("/safe", safety);
  Serial.println(safe);
  server.begin();
  Serial.println("server started");
}
void loop(void)
{
  server.handleClient();
}
void root1()
{
  server.send(200, "text/plain", String(value));
}
void Update1()
{
  value=server.arg("value").toInt();
  Serial.println(value);
  Serial.println("test");
  server.send(200, "text/plain", "updated");
  //write oled code
}
void safety()
{
  if(value>=2)
  {
    Serial.println("not safe");
    server.send(200, "text/plain", "1");
  }
  else
  {
    Serial.println("safe");
    server.send(200, "text/plain", "0");
  }
}

and the client side

#include<ESP8266WiFi.h>

char *ssid="YourNetworkName";
char *pass="123456789";
char *host="192.168.1.15";
int i=20;

void setup()
{ 
//  pinMode(LED_BUILTIN, OUTPUT);
  Serial.begin(115200);
    WiFi.mode(WIFI_STA);
  WiFi.begin(ssid,pass);
  IPAddress ip(192,168,1,15);   
  IPAddress gateway(192,168,4,1);   
  IPAddress subnet(255,255,255,0);   
  WiFi.config(ip, gateway, subnet);
  
  while(WiFi.status()!=WL_CONNECTED)
  {
    Serial.print(".");
    delay(500);
  }
  Serial.println();
  Serial.print("IP Address : ");
  Serial.println(WiFi.localIP());
  Serial.println(WiFi.gatewayIP());
  Serial.println("connected : ");
  Serial.print(host);
  Serial.println("value  ");
  Serial.print(i);
  delay(1000);


//else{ Serial.println("failed");}
}
void loop(){

  WiFiClient client;
 // const int tport=80;
  if(client.connect(host,80)) {
    String url = "/update?value=";
    url += String(i);
    client.print(String("GET ") + url + " HTTP/1.1\r\n" + "Host: " + host +  "\r\n" + "Connection: close\r\n\r\n"); 
    delay(10);
    
    Serial.println("Response: ");
    while(client.available()){
      String line = client.readStringUntil('\r');
      Serial.print(line);
    }
  }}

when client and server connect they transmit data to each other just fine, but if i want to view the updated value in a browser i need to either disconnect the client physically or use wifi.disconnect after it has sent its data.

@deeproblem

Other post/duplicate DELETED
Please do NOT cross post / duplicate as it wastes peoples time and efforts to have more than one post for a single topic.

Continued cross posting could result in a time out from the forum.

Could you take a few moments to Learn How To Use The Forum.
It will help you get the best out of the forum in the future.
Other general help and troubleshooting advice can be found here.

how is my request for information about the other post even related to this one? That one was about finding a way to get started and this one is about a problem I am facing!!