How do I port forwar for a MC Java server?

Posted October 19, 2019 827 views

I have herd that I need to port forward in order to have an IP:Port for a select MC server. Any tips would be great !

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

Hello, @jpcopeela

You need to make sure you port is open in order to successfully receive connections on it. You can do this using iptables:

iptables -A INPUT -p tcp -m tcp --dport PORT -j ACCEPT

Save iptables:


You can also check if ufw is running:

ufw status

Let me know if you have any questions.