Setting up a public Minecraft server in macOS

I’m running macOS 10.14.1 via VMware (the host is Windows 10).
I need to be able to setup a Minecraft server through the virtual machine.
What I’ve tried:

  1. Open Minecraft’s default port through the router, using macOS’s IPv4 address (note: the IPv4 on macOS is different than the one on Windows)
  2. Download server.jar
  3. Double-click it
  4. In the eula.txt, change false to true
  5. Rerun server.jar

Yet, Minecraft on Windows cannot connect to the server using the IPv4 address, nor localhost or the public IP.

Afterwards, I tried specifically specifying, via the, in the server-ip the macOS’s IPv4.
Then, I could connect to the server on Windows – but only via macOS’s IPv4 (obviously), which disables the concept of “public”

What am I doing wrong?