Как я могу получить доступ к веб-серверу в виртуальной машине с iPad?

2857
Nick Haslam

У меня есть виртуальная машина (под управлением Windows Server 2012, если она уместна) на VMware Workstation.

Он работает на веб-сервере Apache Tomcat, и я хочу получить доступ к этому веб-серверу с iPad.

Это возможно или даже возможно?

Я попытался запустить Connectify Hotspot на хост-компьютере, но это только позволяет мне получить доступ к веб-странице на хост-компьютере. Это не похоже на передачу соединения через виртуальную машину, поскольку они находятся в разных подсетях.

Любые мысли с благодарностью принимаются.

1
Ник, мои знания об iPad очень ограничены, я только слышал это имя. Какой тип подключения он использует? Wi-Fi? Serge 11 лет назад 0
IPad использует WiFi, хотя, исходя из этого, может использовать либо Интернет, либо точку доступа WiFi, доступную через Connectify. Nick Haslam 11 лет назад 0
И у вашей рабочей станции также есть WiFi, или проводной с WiFi AP или маршрутизатором, верно? Serge 11 лет назад 0
На рабочей станции тоже есть WiFi, да. Nick Haslam 11 лет назад 0
В общем, да, хотя и не всегда. Однако проблема, которую я считаю, заключается в том, что хост может видеть веб-сервер на виртуальной машине, а iPad может видеть веб-страницу на хосте, но ipad не может видеть веб-страницы на виртуальной машине. Nick Haslam 11 лет назад 0
Да, они оба находятся на 10.64.244.n, где n равно 122 или 82 в подсети 255.255.255.128, что, я думаю, помещает их в одну подсеть. Nick Haslam 11 лет назад 0

3 ответа на вопрос

2
cloneman

One solution would be to give the VM exclusive access to a USB wireless card. Then you could establish a connection to another router where the iPad is connected.

You could also use a remote access software like teamviewer or vnc, although that would give full access to the guest desktop, not safari browser access to the material being hosted (which I assume is what you want).

Basically, you need to either make the web server accessible over the internet, or you need you setup a 2nd network interface that will be on the same subnet as the iPad.

If you're willing to place the web server on the same subnet as everything else, that's the easiest. Just configure vmware to use bridged networking instead of NAT.

0
cdonner

Of course this is possible. I do all development in VMs and have dozens running on servers. You want to bridge the network. The VM will get its own DHCP address or you can give it a static IP address. Then it behaves just like another station in the network, and it does not matter if you use an iPad or a browser-enabled toaster.

0
Nigel Hedges

I had a similar issue, I had a wifi router configured to dish out 192.168.x.x 255.255.255.0 type IP addresses, and could see all the hosts.

I had a web application that was using Tomcat 7 on a Windows 2008 R2 Server. I had a Win7 client and an iphone5 that I wanted to demonstrate being able to log into the web service... but it refused to connect.

I thought I'd turned off all the firewalls for the interfaces, but... on my system I was running the firewall still on the Domain Controller. So, I had to go that extra step and disable the Firewall protecting the Domain Service.

Then everything worked as it should.

Похожие вопросы