Why cant i join my own server bu my friends can
You need to use the server’s local IP address. If it is on the same machine, it will most likely be 127.0.0.1:25565. If its on another server on your network, use the local IP of that device with the port of the server (25565 by default)