How to share Internet connection of VMWare guest with host in VMWare Player?

31

Follow the instructions step by step since in some cases the order is important.

Setting up VMware Player

  1. Right-click the Network Adapter icon and choose Settings...
  2. Make sure the Connected value is checked in the Device status section.
  3. Select the Host-only: A private network shared with the host value in the Network connection section and click OK to save the settings

Setting up Guest (Windows XP)

  1. Open Control Panel and proceed to Network and Internet Connections

  2. Here you should see two connections: the connection to the host and the connection to the Internet. They won't, most likely, have any precise titles, but you should be able to identify which one is which by connecting and disconnecting the 3G stick

  3. Right-click the connection to the Internet, open Properties, Advanced tab and check the Allow other network users to connect through this computer's Internet connection value in the Internet Connection Sharing section. Then click OK to save the properties

  4. Right-click the connection to the host, open Properties, select Internet Protocol (TCP/IP) in the General tab and open its Properties. Select the Use the following IP address value and fill in the following:

    IP address:           192.168.17.2
    Subnet mask:          255.255.255.0
    

    Leave all other fields blank and click OK twice to save the properties.

  5. Open Control Panel once again, proceed to Windows Firewall, Advanced tab and uncheck the connection to the host in the Network Connection Settings section. Then click OK to save the settings


Setting up Host (Windows 8)

  1. Press Windows » then type View network connections and open it

  2. Find the connection called VMware Network Adapter VMnet1, open its properties, select Internet Protocol Version 4 (TCP/IPv4) in the Networking tab and open its Properties. Make sure the Use the following IP address value is selected and fill in the following:

    IP address:           192.168.17.1
    Subnet mask:          255.255.255.0
    Default gateway:      192.168.17.2
    Preferred DNS server: 192.168.17.2
    

    Leave the alternate DNS server field blank and click OK twice to save the properties.

  3. Clear the Default gateway in the same menu before you start to use another Internet connection

The Internet in Windows 8 should now work.

Share:
31

Related videos on Youtube

James Wilson
Author by

James Wilson

Updated on September 18, 2022

Comments

  • James Wilson
    James Wilson almost 2 years

    I'm struggling to find a solution here.

    I need (via htaccess):

    www.domain.com/tag/
    www.domain.com/tag/my-first-tag/
    www.domain.com/tag/my-second-tag/
    

    To ALL redirect to

    www.domain.com/new-folder/
    

    I do not want any information carried across like:

    www.domain.com/new-folder/my-first-tag
    

    I have tried

    RedirectMatch 301 ^/tag[/]?$ /new-folder/
    

    But this only redirects one url: /tag/ and no sub folders.

  • MGol
    MGol over 6 years
    How about if vmware guest is ubuntu?
  • James Wilson
    James Wilson over 4 years
    Sorry. Not all the tags will end -tag. That was, purely for an example. They will be random words after /tag/. Thank you!
  • James Wilson
    James Wilson over 4 years
    Sorry for the delay. Waited until back in the office to try this. The solution was simple!
  • James Wilson
    James Wilson over 4 years
    The ?$ was doing the damage in my original example.
  • anubhava
    anubhava over 4 years
    Indeed, presence of $ makes it match /tag/ only at the end.
  • phocks
    phocks over 3 years
    Amazing. I can't believe this actually worked!