Hi,
First of all I'm not sure that this is the right place, so if it isn't please feel free to let me know, and/or move the thread...

I have Windows 7 with WAMP installed, and I obviously view my stuff by going to http://localhost (or which is essentially the same), the problem is that I downloaded XP Mode which is quite awesome, but I can't go to http://localhost, since my files are not 'local' on the VM. I searched all over the web, and couldn't find anything helpful, if you can help I'll be very grateful!!!

Thanx in advance...

Dani AI

Generated

Short answer: the XP Mode VM is on a separate NATed subnet by default, so the VM’s loopback is the VM itself — you must either put the VM onto the same physical network as the host or allow the host’s Apache to accept connections from the VM’s subnet. was right to look at IPs and ports; the fix is a combination of Virtual PC network settings + making sure WAMP/Windows Firewall will accept non-local requests. (References: Windows Virtual PC networking; WAMP/Apache access rules.)

Two practical approaches (pick one):

  1. Put XP Mode on the same LAN as the host: shut down the VM, open Windows Virtual PC -> right‑click the XP Mode VM -> Settings -> Networking, and set the adapter to your host’s physical network adapter. That moves the guest onto your LAN so the guest can reach the host by its LAN IP. See Microsoft’s guidance on changing the adapter.
  2. Keep NAT but allow the VM to reach your host: confirm Apache is listening on all interfaces and allow the VM subnet in Apache/WAMP, then open port 80 to that subnet in Windows Firewall. Typical Apache changes (adjust to your Apache version) — edit httpd.conf or vhost:
# Apache 2.2 style
# onlineoffline tag - don't remove
Order Allow,Deny
Allow from all

# Apache 2.4 style
# onlineoffline tag - don't remove
Require local
Require ip 192.168.1

(For WAMPServer there’s also the tray “Put Online” action which toggles these settings.) Also add a Windows Firewall inbound rule to permit TCP port 80 (or your custom port). Links below show the exact places to change these safely.

If you only need file access (not host→guest HTTP), enable Virtual PC “Integration/Shared Folders” so the guest can edit files stored on the host without serving them over HTTP. After changes, test from XP Mode by pinging the host and browsing to http://<host-ip>:<port>. Useful references: Windows Virtual PC networking and settings, how WAMP’s online/offline tag works, and Microsoft docs on creating firewall inbound rules.

Links: Windows Virtual PC networking/how to change adapter (Microsoft) — https://learn.microsoft.com/en-us/answers/questions/2447170/windows-7-xp-mode-networking-problem ; Virtual PC networking details — https://pjhutchison.org/virtual/virtualpc.html ; WAMP/Apache “put online” and access rules — https://stackoverflow.com/questions/24005828/how-to-enable-local-network-users-to-access-my-wamp-sites ; Windows Firewall inbound rule guide — https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-r2-and-2012/jj717282%28v%3Dws.11%29.

Recommended Answers

All 10 Replies

its 127.0.0.1


now since you are running a vm that guest system will in fact get its own ip address
so on the system thats running the server and you can use 127.0.0.1 to get to your site
press start run ( or windows key and r ) type in cmd press enter you get a command window
typing in ipconfig this will list your ip address write down the ip address now do to the guest operating system which is windows xp and then go to the addres you wrote down

Sorry, that was my bad...

I tried putting in the IP address, but it didn't work?!?!?!?

you put in the lan ip address right no wan ?

also are you running your server on a diffrent port like
8080 or anything ?

That's what I have, and I tried all the numbers...
Connection-specific DNS Suffix . :
Link-local IPv6 Address . . . . . : fe80::b8f9:4f3c:e99e:4df3%12
IPv4 Address. . . . . . . . . . . :
Subnet Mask . . . . . . . . . . . :
Default Gateway . . . . . . . . . :

now how would I know what port I use for my server?

and if you got that info from the side thats running the server when you go to the other one and try it doesnt work ?

nope, just tried it again :'(

goes that guest os have a ip(please check) or firewall ?

and does your host os have a firewall ?

The VM has has an IP of (which XP mode gets by default), and AFAIK there are no firwalls on either of them...

i havent work with alot of windows based vm's but from the looks of that ip it uses or is on a diffrent dns server we should change it to

IPv4 Address. . . . . . . . . . . : - any where in that range
Subnet Mask . . . . . . . . . . . :
Default Gateway . . . . . . . . . :

being the ip address is way different it may not be on the same network / avaliable for that computer to see whats on the other network

I'm not sure I understand what you're saying...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.