I can not change port

I can not change public server port.
When I changed all port number to new one, But server is still running on old port.
How can I change port number on Raspberry Pi 4 Model B and 640GB HDD?

Have you read this ?


If you’re using docker you have to remove the old container and start a new one.

Also, you should check your router port forwarding settings.