Networking [SOLVED]: How to access a VM that is connected to a private network using another VM

Networking [SOLVED]: How to access a VM that is connected to a private network using another VM

Home Forums Networking Networking [SOLVED]: How to access a VM that is connected to a private network using another VM

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #36794

    Anonymous

    QuestionQuestion

    I have 2 VMware virtual machines, each of them running Windows Server 2017 (Server Core) Build 17046. I’m using VMware.

    VM #1 has access to the client – Network Adapter 1
    VM #1 also has access to a private network (VMnet10) – Network Adapter 2

    VM #2 ONLY has access to the private network (VMnet10) – Network Adapter 1
    VM #2 is running the Minecraft server

    What I’m trying to achieve is a way for the client to connect to VM #1’s Port 25565, and VM #1 redirects the connection to VM #2’s Port 25565

    diagram

    In other words, I want the clients to be able to connect to VM #2 without any changes in the network configuration.

    Here’s a snip of how my network adapters look like in VMware:

    snip

    VM #1’s first adapter is connected to Host-Only because, for now, my PC (the host) is the only client

    #36795

    Anonymous

    Accepted AnswerAnswer

    You have to setup port forwarding in your VM #1 using the netsh tool.

    For more details refer the following page:
    https://technet.microsoft.com/en-us/library/cc731068(v=ws.10).aspx

    Also, don’t forget to open port 25565 for incoming traffic in VM #2's firewall.

    Source: https://serverfault.com/questions/889439/how-to-access-a-vm-that-is-connected-to-a-private-network-using-another-vm
    Author: Yugendra
    Creative Commons License
    This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.