Can ping server, but not browse - windows

I'm trying to set up a personal cloud server on a Surface Pro, but I'm running into a networking issue that has me completely stumped.
My setup looks like this: I've installed a Nextcloud server on a VMWare virtual machine that's running Ubuntu 16.04, and I have it configured to use NAT so the virtual machine shares a fixed ip address with the host machine. I've forwarded ports 80, 443, etc. on the host machine's NAT device so requests go to the virtual machine. Additionally I've configured my router to have a static ip address, and I've forwarded all the relevant ports to the Surface Pro on my router.
So the trouble is that I can't connect to my server from my browser. HOWEVER, I am able to ping my server, I can SSH in to both the virtual machine and the host machine from the internet, and I am able to access the server in my browser from any computer that's connected to LAN, no problem.
This all sounds like it could be a firewall issue to me (maybe port 80 is blocked on the host machine for some reason??) but the fact that I have no trouble accessing the server from LAN is confusing the issue, and also deactivating the firewall on the host machine doesn't solve the issue.
Any thoughts?

I solved the problem! It turns out the NAT device was improperly configured to use its own DHCP service rather than using the local DHCP service. Basically it was assigning a LAN IP address 169.254.72.176 to the virtual machine, while everything else was configured to expect that the virtual machine's IP address was fixed at 192.168.34.43.

Related

How to make server inside vm have same ipaddress even though we change network

I have windows server installed in a vmware with domain configured. I had configured a website in iis and kept network adapter as bridged in vmware and is able to access website outside vmware on my local computer.
Problem is when i change my network on local server, we are not able to access website because earlier network range configured was different. For eg : first time it was in 192.168.Xx.XX series after changing network entire ipaddress of local computer got changed to 10.02.XX.XX
Need to know how we can achieve this.
You can assign another VM adapter to Local server and assign him static IP of your subnet or add a second IP to exiting network Adapter. After adding static IP of your subnet to local server, you can assign this IP to you IIS site and can access it from all of your network.
You can also configure NAT/bridge connection again on your server Vmware network adapter as you did earlier (what is the issue?).
If you dont want to assign ip of your local network to server vm, you can also assign second ip address to your host machine network adapter( If clients are not many).
you should also adjust the website's or VM's ip matching your network segment.
so if your network subnet is already 10.x.x.x change your websites ip to 10.x.x.x . or if you dont want to change your website's ip then you should configure routing or NAT

SSH connect from local windows VM to Azure windows VM

I want to have a SSH connection from my local windows machine or VM on my computer to Azure windows server VM. I tried Cygwin and Putty but both of them gave timeout connection. I used public ip address and opened port 22 on Azure VM.
I will appreciate if some one can give me any hints or links.
There are multiple firewalls that can be the reason here. Fist you must have a rule on the server to allow incoming SSH requests (port 22). Then you need to configure the NSG(Network security group) to allow incoming on port 22. If it still doesn't work, you need to verify that you are allowed to do an outgoing SSH request from your computer.
Thanks for suggestions, I found the problem which was the host machine IP address(ipconfig) (where is a local VM inside domain) was different from the IP address that communicate outside the domain to internet. I was set in NSG of Azure VM to only accept this IP and because of that it gave time-out error. After changing the IP it works.

vmWare Workstation External Accessibility Issue

I'm running Windows Server 2012 w/ vmWare Workstation. I've built a GitLab VM on Centos 7 that's totally setup and accessible on my local network. It's configured using Bridged Mode so it has it's own IP from the DHCP Server.
I use No-IP to connect to my Network externally which has been working great for several years now. I have port-forwarding setup within my router to forward traffic for the GitLab webUI to the GitLab VM, but it's not accessible externally. I even tried setting up the port forwarding to direct the traffic to the Windows Server and then setup internal port forwarding w/ netsh on the Windows Server to forward the traffic to the GitLab VM, making sure I opened the port on the Windows Firewall (even tried disabling it), but I still can't get to the GitLab VM externally. AFAIK running a VM w/ a Bridged adapter should essentially be like it is just another physical machine on the network.
Now, I am running IIS on the Windows Server, but when I specify a specific port using my public No-IP Domain, the router should detect the traffic on that port and forward it according to the rules that I have setup, correct? IIS shouldn't be interfering with any traffic on other ports with the external Domain.
I'm totally stumped on this on and searching around the web really hasn't helped much.
So it turns out that I did everything 100% correctly with setting up port forwarding right to the IP of the VM, but my workplace blocks just about every port except for 80 and 443. Tested connectivity from an AWS box and everything is accessible exactly as designed.
Now I just feel like an idiot, but hey, I figured it out.

Virtual IP Address

I am developing an application related to networking . Its prerequisite is that the machine must have an ip address to function properly.
When i am on my home network , my machine gets the IP address through DHCP present on my network. However, when my machine is in stand alone mode e.g. while travelling i can not have an ip address and the status is LAN DISCONNECTED.
Is there a workaround so that i can get an ip address or virtual ip address in standalone mode?
I have already tried configuring with loopback address and other ip address.
Can I do it by installing a dhcp server on my machine? My system uses WINXP?
Network card: BroadcomNetxtreme 57XX gigabit ethernet.
I strongly feel that the application details have nothing to do with it. Since, when the machine has an ip address it starts working properly.
Still i am open to ideas.
I advise you to work inside a virtual machine, and then assign a virtual IP and vitual MAC of your convenience. You can use Virtual Box or VMWare.

Virtual PC (XPMode) - How to access Webserver on guest from host

I have Windows XP running inside Windows 7 via Virtual PC (XPMode) and installed Zend Server CE on the virtual XP guest. The webserver is running and can be accessed on the guest, but I cannot access the webserver from the Win7 host.
I configured a static IP address and subnet of 255.255.255.0 on the guest and can ping this IP from the guest but not from the host. The other way it works fine, i.e. I can ping the host from the guest. I can also access the internet from the virtual XP guest.
I tried different Network Options in the VirtualPC settings, but nothing helps. Googling the topic I couldn't find anything helpful yet.
Any idea, what I could try to access the webserver on the virtual XP guest from the Win7 host?
Finally I got it running.
Here is what I did:
VirtualPC => Settings => Network: Selected my WiFi Adapter instead of NAT
Determined the IP address of the virtual XP guest with ipconfig.
Accessed webserver on guest with browser on Win7 host by the determinded IP address.
Don't ask me why, but it didn't work with defining a static IP address on the guest, so I left it to dynamic. The ping command does not work either, so don't check access by pinging your guest, just test with your browser.
I dont't really know much about network configuration, so there might be a better solution :)

Resources