How to run a AMP minecraft java edition server publicly
There are meny things to take into account but the key things to know are: your public ip address (which you can search up to find), your device's privite ip address (which you can find out using "ip a" in linux or "ipconfig" on windows), and the port the server is being hosted through. Assuming you are using AMP, your port is diplayed on the home page while configureing the server. Now, go into your router using one of these in your browser's search bar: [192.168.1.1](http://192.168.1.1),[192.168.1.0](http://192.168.1.0),[192.168.0.1](http://192.168.0.1),[192.168.0.0](http://192.168.0.0) .(note that yours might be different then the ones i listed).Then, find "port forwarding" and create a new rule allowing traffic through port Ex. 25565 to your device's privite ip Ex.192.168.1.145. Once you have done that, your good! just give your friends your public ip and port number Ex. 203.14.104.683:25565 (port number goes after the colon) and they can join. DISCLAMER only give your public ip to people you trust.
problems (that i ran into) using a VM
make sure your networking on your VM is using a bridged adapter and not a NAT. if you have the VM using a NAT, you ip address will be somthing like [10.0.2.17](http://10.0.2.17), which won't be able to be port forwarded to. however, it will be loged into localy, if you just want a local server. if you just want to use it as a local server, the ip should be [127.0.0.1:25565](http://127.0.0.1:25565)
problems (that i ran into) using a VM
make sure your networking on your VM is using a bridged adapter and not a NAT. if you have the VM using a NAT, you ip address will be somthing like [10.0.2.17](http://10.0.2.17), which won't be able to be port forwarded to. however, it will be loged into localy, if you just want a local server. if you just want to use it as a local server, the ip should be [127.0.0.1:25565](http://127.0.0.1:25565)
Commentaires
* Downvote this comment if this post is poor quality or does not fit the purpose of r/Minecraft
* Downvote this comment *and report the post* if it breaks the [rules](https://www.reddit.com/r/Minecraft/wiki/rules)
----
(*Vote has already ended*)
Also worth mentioning most ISPs use dynamic IPs so you might need to set up DDNS or just check whatsmyip every so often if your friends can't connect randomly