I have a Windows Server 2008 R2 running inside Oracle VirtualBox machine. I have IIS installed and can access the default website from my computer: http://machinename
The problem is that when I add or change a binding to other port than 80 (e.g. 8001), I cannot access the website from my computer (e.g. http://machinename:8001). Port 80 works, other do not.
How do I configure IIS inside of VirtualBox to serve pages to ports other than 80?
Related
I have installed IIS on docker, disabled any firewall and configure no-ip for access externalLy, and finally configured no-ip on my router with port fowarding...
I have configured iis and congirured local port 91 to 80 container port...
from local 'http://pincopallino-no-ip:91' compare correctly the default iis page, but externally network I get 'err_connection_timed_out'....
after, I installed apache server on docker, and configured always local port 91 to 80 container port, and apache page it works both indoors the network and outdoors 'http://pincopallino-no-ip:91'
there is a solution?
perfect, now I restarting my computer, ad if run externally !
I have a VMWare Player (14.1.2 build-8497320) running a Ubuntu 18.04 guest on a Windows 10 host. The Ubuntu guest has a LAMP stack that runs a few web applications. I am using NAT to connect the Ubuntu guest to the Windows host's network.
I can access these applications by using the local IP address of the guest (e.g., http://192.168.80.128/mediawiki) from my Windows host. But I want to access it like so from my Windows host: http://localhost/mediawiki. I think this should be possible if I can forward the port 80 of my Ubuntu guest to that of the Windows host.
How do I make this happen please? I don't have access to VMWare Workstation and its Virtual Network Editor.
Edit: I should probably add the motivation for wanting to do this. Basically, I want to avoid figuring out the IP address of the virtual machine everytime I access the web applications.
The (further) reason is that the local IP address of the Ubuntu guest might (I suspect) change, and that will affect quite a few things, such as the base URLs configured in the webapps' configuration files (e.g., the $wgServer variable in LocalSettings.php of MediaWiki).
VMWare Player supports port forwarding over NAT natively:
In the file C:\ProgramData\VMware\vmnetnat.conf put under section [incomingtcp] a line like:
80 = 192.168.80.128:80
Then restart the VMWare NAT Service :
net stop "VMWare NAT Service"
net start "VMWare NAT Service"
Source/credits: https://hitchhikingtheweb.wordpress.com/2014/09/02/portforwarding-with-vmware-player-and-nat/
Also: VMWare documentation of this
You can do it using SSH Tunneling for example.
From windows you open a tunnel from the windows port 80 to the ubuntu port 80.
You can do it using Putty on Windows and having the ssh deamon running on ubuntu, which I guess you should already have.
There are many tutorials on how to do this.
I'll add just one link, but you can always google it and find one that suites you.
Portforwarding with SSH (Putty)
For the possible changes in the guest’s ip:
If you can’t fix the ip in settings then perhaps you can edit the windows hosts file and add a host name for the current Ubuntu ip. Then build the urls using the host name. If the ip changes you change it in the hosts file.
Systems:
Windows Server 2008 R2
IIS 7.5
VMWare 10
i wanted to access the website hosted from other LAN machines.
Inside the machine there is a VMware 10 running windows server 2008 r2 and iis 7.5.
i set a bridged connection for the VM and using a static ip xxx.xxx.x.198 in windows server
I added a binding to my website (:122).
I added inbound and outbound rules in the firewall settings.
However, i managed to access the webpage from the host machine (windows 8) outside of the VM.
But i can't access the webpage from another machine.
Are you sure you've checked the firewall machines on both the guest and the host?
I have a published asp.net web page runs on local machine IIS server and it is working fine
How do I access the same web running web site over the LAN and Internet
Additional : I have a static IP for the machine and IIS runs on port 8080
Local machine URL for site = localhost/frmHome.aspx
Static IP for the machine = "203.165.24.225" which 80 and 8080 ports are enabled for Http requests
When you are hitting website from your machine then fine it will work with localhost. But when you will hit the same from some other machine over LAN then just replace localhost with your IP. If it is not working then try to ping your IP from that machine to check whether your machine is reachable to that machine over LAN or not.
I run an ASP.NET Development Server (that came with MS Visual Studio 2010) on my Windows 7 machine. I'm currently developing an ASP.NET C# web application and to test it on Windows 7 machine I need to navigate my web browser to an address like this:
http://localhost:59215/Default.aspx
I also have the VMware Workstation 8 installed on that Windows 7 with other OS as virtual machines. I need to try to load my web app from those virtual machines, but when I type the above address there I get "Cannot display page" error in a browser. Note that I can access internet from a virtual machine itself, but for some reason localhost on the main machine is not accessible.
Any ideas how to set this up?
OK, I got it!
For those who're interested, here's how:
Say, my developement URL on the host computer is:
http://localhost:59215/Default.aspx
Download this util, called tcpTrace and run it on a host machine. When it starts configure it as follows:
Listen to port #: 80
Destination Server: localhost
Destination Port #: 59215 (which will be different in your case)
Click OK and let tcpTrace run on the host computer.
On the virtual machine navigate the browser to the IP address of the host computer, for instance in my case:
http://192.168.0.4/Default.aspx
and it will work!
PS. To get an IP address on the host machine, run ipconfig there (in a command prompt window). Your IP will be presented in the "IPv4 Address" line for network you're connected on.
PS2. Also my Windows 7 (host) doesn't come with any third-party anti-virus or firewall. It has a built-in Windows firewall and MS Security Essentials as an AVP. So if your setup is different one needs to open the incoming port 80.
PS3. Speaking of the VMWare Workstation, the virtual machine's network adapter setting is set on "NAT: Used to share the host's IP address" as it came out-of-box when you install it.
localhost is the local machine (to the OS).
I'm not sure if the VS dev server will allow external connections, you may want to install IIS - either way, you'll have to open up the Windows Firewall to allow external connections.
I'm no VMWare user but each OS will have its own IP address(?) - and that's how you'd connect to the Windows 7/IIS image. http://the.ip.address.of.the.win7.image/