Important! This is an automatic machine translated page. If you can read english, you should Click Here to read the original English version of the article.

Allow Access to a VMware Virtual Machine(NAT) From Another Computer Pustite Dostop do VMware Virtual Machine (NAT) iz drugega računalnika

If you are running a virtual machine on your computer, you may want to access that virtual machine from another computer. Če uporabljate virtualne naprave v računalniku, boste morda želeli, da je dostop stvaren stroj iz drugega računalnika. Let's use an example: Say you have an Ubuntu virtual machine with Apache running on port 80, and you want to show other people on your network to access the website you are hosting. Let's uporabo Primer: Recimo, da imate Ubuntu stvaren stroj s Apache teče na port 80, in želite prikazati druge osebe v omrežju za dostop do spletne strani, so gosti.

We're going to assume that the virtual machine is using NAT, and has been assigned an IP address of 192.168.23.128. Mi bomo za domnevo, da virtualni stroj z uporabo NAT in je bil dodeljen naslov IP 192.168.23.128.

First open the Manage Virtual Networks start menu item: Prva odprta Upravljanje Virtual Networks začetek jedilnik reč:

Click on the NAT tab, and then click on Edit. Kliknite na jeziček NAT, in nato kliknite Urejanje. You will see the NAT Settings dialog: Videli boste pogovorno NAT nastavitve:

Click the Port Forwarding button, and you will see this dialog: Kliknite gumb Posredovanje Port, in videli boste to okno:

Now we are finally on a screen we can actually use. Zdaj smo končno na zaslonu bomo dejansko uporabo. We're going to use port 8080 on the host machine. Bomo k uporabi pristaniških 8080 na gostitelja stroj. We enter the ip address for the ubuntu virtual machine, and port 80. Mi vpišite IP naslov za ubuntu stvaren stroj, in pristanišča 80. These ports could be any ports. Te pristanišč bi lahko katero koli pristaniščih.

We should be able to test this out by going to Morali bi imeti možnost, da ta test, ki ga bo http://localhost:8080 http://localhost:8080 on our host pc. o naši državi pc. We can give out the url to our host machine by replacing localhost with the host computer IP address. Lahko izžarevati url našemu gostitelju stroj z zamenjavo localhost z naslovom IP naslov računalnika.

This article was originally written on 12/7/06 Tagged with: Ta članek je bil prvotno napisan na 12/7/06 Tagged with: VMware VMware

Daily Email Updates Dnevni Email Updates

You can get our how-to articles in your inbox each day for free. Lahko dobite našo kako do člankov v vašo mapo »Prejeto vsak dan brezplačno. Just enter your name and email below: Preprosto vpišite vaše ime in e-pošto spodaj:


Name: Ime:
Email: E-pošta:

Comments (17) Komentarji (17)

  1. Scrooge Scrooge

    Nice, thank you! Lepo, hvala!

  2. JC JC

    It works for me in the loopback interface in local machine only. To tovarna navzlic v povratne vmesnika v lokalnem stroju le.

    If my IP address is XXXX I can access Če je moja IP naslov je XXXX morem dostop

    http://localhost:8080 http://localhost:8080

    but no: vendar ne:

    http://XXXX:8080 http://XXXX:8080

    Any idea? Kakšna ideja?

  3. Dani Dani

    I have the same problem Imam isto naloga
    http://localhost:8080 http://localhost:8080 works but gradenj, temveč http://xxxx:8080 http://xxxx:8080 don't work from other machines. ne dela iz drugih strojev.

  4. JC JC

    Well, I'd forgot to route the external network in the virtual machine. No, sem pozabil na poti zunanjega omrežja v stvaren stroj.

    Now it works. Zdaj je tovarna. Sorry. Oprostite.

  5. Dani Dani

    Please, can you give some indication of how do you do it? Prosim, lahko pokažejo kako si to naredil?
    Do you refer to the vmware NAT configuration or is necessary some other configuration? Ali ste se nanašajo na vmware konfiguracijo NAT ali je potrebno kakšno drugo konfiguracijo?

    Thanks in advance. Hvala vnaprej.

  6. JC JC

    No. I don't refer to the nat configuration in vmware Ne jaz ne nanašajo na nat konfiguracijo v VMware

    My guest system was a SCO Unix. Moj sistem je bil gost SCO Unix. I needed to add the routes (by using the route command) to my guest could see the externeal network. Sem rabil, da dodate poti (z uporabo poti ukaz), da bi lahko videli moj gost externeal omrežja.

    Example: route add -network external_net -netmask external_mask nat_device_router Primer: route add-omrežja external_net-netmask external_mask nat_device_router

    Hope it helps you. Upam, da vam pomaga.

  7. Dani Dani

    I have it working now… but I can't tell why it don't work before (: Imam to dela ... zdaj pa ne morem povedati, zakaj to ne dela, preden (:
    Thanks for the answer!! Hvala za odgovor!

  8. tyliong tyliong

    Thank you very much. Hvala lepa. your little tutorial has helped me so much. tvoj mali tutorial mi je pomagalo toliko.

  9. jonw jonw

    Good tutorial. Dober tutorial. Is there a way to access a webserver or ssh server running on a virtual machine from the internet (outside the local network)? Ali obstaja način za dostop do webserver ali ssh strežniku v stvaren stroj iz interneta (zunaj lokalnega omrežja)? I'd really love to see an indepth article about this. Jaz bi res radi videli poglobljeno članek o tem.

  10. GK GK

    I follow the above example and update the NAT thru vmcfg. Sledim Zgornji primer in posodobitev prek NAT vmcfg. However, when I try Vendar, ko sem poskusil http://localhost:8080 http://localhost:8080 on the host pc. na gostitelja pc. It does not work. To ne deluje. What did I miss ? Kaj sem zamudil?

  11. Nima Nima

    You should config firewall on ur host machine to open ports that NATed to the guest VM. Moral bi config firewall ur na gostitelja stroj odpreti vrata, da denominirane v VM gosta.

  12. shopank shopank

    it's very cool tips here which you mentioned here which i honestly say even i was not available in vmware forum. to je zelo kul nasveti tukaj, ki ste jo omenili, ki sem jaz rečem, tudi jaz ni bil na voljo v vmware forumu. ok i did all this configuration step by step but still i cant access the webserver in my host browser!!? ok sem storil vse to konfiguracijo korak za korakom, vendar še vedno jaz vekanje dostop spletni strežnik v moji državi brskalniku!?
    in both , host & guest, the fire wall is off & maped the port for forwarding as mentioned above, & restart the vmware & still not working?(the vmware is in NAT connection mode) v obeh, gostitelj in gost, požarni zid je off & maped vrata za posredovanje, kot je omenjeno zgoraj, in ponovno zagnati vmware in še vedno ne deluje? (vmware je v zvezi NAT mode)
    i wish someone can help me bcz it's being one week that i struggling with this problem Želim si, nekdo mi lahko pomaga BCZ je pa en teden, da se jaz borila s tem problemom :)

  13. shopank shopank

    anybody there plz help me!! kdo tam plz pomoč mi!

  14. sudhakar Mani sudhakar Mani

    I am able to access the Linux VM Guest from the host machine.But I couldn't access this from any other machines on the LAN. Jaz sem možnost dostopa do Linux VM gostov od gostitelja machine.But nisem mogel dostop do te od vseh drugih strojev na LAN.

    For Example : My virtual machine Ip is 192.168.79.32(NAT) Za Primer: Moj virtualni stroj Ip je 192.168.79.32 (NAT)

    I could access this from my host machine : Lahko bi dostop do te iz moje gostiteljice stroj: http://192.168.79.32:8005 http://192.168.79.32:8005

    But if I try the same from another machine on the lan I couldn't.Even I couldn't ping 192.168.79.32 from LAN. Ampak, če poskusim isto z drugim strojem na lan nisem mogel. Tudi jaz ne bi mogel ping 192.168.79.32 iz LAN.

  15. Rehan Yousuf Rehan Yousuf

    Sudhakar, Sudhakar,

    I do not know what other machine OS you are using, but on windows hosts file located in DriveLetter-Windows-system32-drivers-etc. Ne vem, kaj drugi strojno OS, ki ga uporabljate, vendar na okno stanodajalec pila, ki se nahajajo v ČrkaPogona-Windows-system32-voznikov-itd. add this line dodaj to vrstico
    Xxx.Xxx.Xxx.Xxx VMmachinename Xxx.xxx.xxx.xxx VMmachinename
    Change xxx to vm guest ip address and VMmachine name. Spremeni xxx za VM gost IP naslov in ime VMmachine.

    -Rehan -Rehan

  16. Felix Felix

    Hi Živjo

    I setup up my port forwarding in vmware from host port 8080 to vm port 80 but like the others on this forum I could only connect to the guest vm using Setup sem gor svoj port forwarding v vmware od 8080 do pristanišča gostitelja VM port 80, ampak kot drugi na tem forumu sem lahko samo povezati gost VM uporabo http://localhost:8080 http://localhost:8080 and not 10.64.9.12:8080 on local host or over the network. in ne 10.64.9.12:8080 na lokalne gostiteljske ali prek omrežja. I have my firewall turned off also. Imam tudi požarni zid izklopljen.

    Is there anything else that might block this? Je še kaj, da bi ta blok? It seems my vmware is setup correctly but there is something else I am not doing. Kaže mi vmware je setup pravilno, vendar pa je nekaj drugega ne počnem.

    Errol Errol

  17. Anil Anil

    Hi All the localhost ip on the machine itself is 127.0.0.1 its the loopback address. Hi All localhost ip na stroju sam 127.0.0.1 svoj naslov za povratno zanko. if you are trying to use ip for localhost you should use 127.0.0.1 or change this setting at DriveLetter-Windows-system32-drivers-etc as Rehan said and user host machine's hostname. Če poskušate uporabiti IP za localhost morate uporabljati 127.0.0.1 ali spremenite to nastavitev na ČrkaPogona-Windows-system32-voznikov-itd, kot je dejal Rehan in uporabnikov gostiteljice stroja hostname.

    Hope this helps. Hope this helps.


Leave a Comment Pustite komentar




Leave your Pustite friendly prijazen comment here. comment here.

If you have a computer help question, Če imate računalnik pomagati vprašanje, click here to leave it on the forums kliknite tukaj, da ga pustijo na forumih instead. namesto.

Note: Your comment may not show up immediately on the site. Opomba: Tvoj komentar morda ne pokažejo takoj na mestu.

Our Friends Naši prijatelji
Getting Started Getting Started


About How-To Geek O Kako naj Geek
What Is That Process? Kaj je to proces?
svchost.exe svchost.exe
jusched.exe jusched.exe
dwm.exe dwm.exe
ctfmon.exe Ctfmon.exe
wmpnetwk.exe wmpnetwk.exe
wmpnscfg.exe wmpnscfg.exe
rundll32.exe rundll32.exe
wfcrun32.exe wfcrun32.exe
Ipoint.exe Ipoint.exe
Itype.exe Itype.exe
Wfica32.exe Wfica32.exe
Mobsync.exe Mobsync.exe
conhost.exe conhost.exe
Dpupdchk.exe Dpupdchk.exe Adobe_Updater.exe Adobe_Updater.exe

Copyright © 2006-2009 HowToGeek.com. Copyright © 2006-2009 HowToGeek.com. All Rights Reserved. All Rights Reserved.