Friends cannot connect to mc server

OS Linux
Platform Ubuntu 24.04.2
System Type x86_64

Currently running version 2.6.2 - 20250608.1

I have installed a minecraft java instance and run it, tho my friends keep getting the same error while joining: getsockopt. i searched it online alot but i still havent figured out why this is happening. Also i am new to amp and would greatly appretiate if i could get simpler answers

did you forward ports on your router? are you giving your friends the correct IP to connect?

both TCP and UDP ports are fowarded and i am giving my friends the right adress for the server