So ip and everything is set up but a question: is it possible if I can forward ports, so to speak, of course, type B as on the switch, so to speak, the same as for pc? So server config is correct but which ip do I have to use?
You should use your public IP address: https://api.ipify.org/
Do I understand correctly that you have hosted a Minecraft Java Edition server locally, i.e. On your PC and now want to play on it with another PC?
You have to set up port forwarding for a Minecraft server on port 25565 / tcp.
The port forwarding must point to the internal IP address of the PC (10.x.x.x or 172.16.x.x - 172.31.x.x or 192.168.x.x). The internal IP address can be found in Windows with the "ipconfig" command. Eg. 192.168.1.152
Ethernet adapter Ethernet:
IPv4 address…: 192.168.1.152
Subnet mask…: 255.255.255.0
Standard gateway…: 192.168.1.1
People from the Internet still need your public IP address to connect, you can simply visit https://www.wieistmeineip.de/.
Your friends have to connect to the public IP address, so you can use the internal one.
It's not my question i'm not too stupid to create a server
If you had listened carefully… Activation or port forwarding is at the Mac address level as shown in the video.
If you read my answer correctly… Or ask…
Yes, the question about ip is also answered in the video