Avatar of Mach03
Mach03

asked on 

Running a local instance on 2 computers

I'm using Visual Studio 2008 and everything is working fine.  howerver in order to test multiple browsers I had to install Virtual PC with older browsers.  howerver, when I try to connect to my instance from the virtual PC.. it says it's not available.  

On my orginal PC I goto - http://localhost:3141/Portal/CMBank/Home.aspx

On the Virtual PC when I type in - http://192.168.0.10:3141/Portal/CMBank/Home.aspx (192.168.0.10 - is my IP on orgianal)

It will not display the page.  What am I doing wrong here?

Thanks
.NET ProgrammingMicrosoft IIS Web ServerApple Software

Avatar of undefined
Last Comment
Ted Bouskill
Avatar of Ted Bouskill
Ted Bouskill
Flag of Canada image

How did you configure the networking for the virtual PC?
Avatar of Mach03
Mach03

ASKER

Not sure what you mean?  It's configured as a basic XP SP2 box
Avatar of Mach03
Mach03

ASKER

oh the Nic card? (sorry it's late)  It's setup the same as my local machine with the same DNS and gateway.  But does have a dynamic IP
Avatar of Ted Bouskill
Ted Bouskill
Flag of Canada image

Hmm, if it's on the same subnet, connectivity shouldn't be an issue.

Have you tried a tracert, ping or telnet to see if the VM (Virtual Machine) can access the host?
Avatar of Mach03
Mach03

ASKER

Okay, I figured out the issue, but I don't know how to resolve it.  

When I ran a netstat -a, it shows that my computer is broadcasting and allowing 127.0.0.1:3141 as the open port, but NOT the IP address of the computer which would be 192.168.30.22:3141.  

So how do I add my computer's IP address to this list?

Thanks
Avatar of Mach03
Mach03

ASKER

Okay, how do I configure VS 08 to added or change the IP address from 127.0.0.1 to local IP?
Avatar of Ted Bouskill
Ted Bouskill
Flag of Canada image

Do you mean when you run or test the application in Visual Studio?

IP addresses are not included in the binaries.  If you have hard coded IP addresses in your HTML then that's another issue.
Avatar of Mach03
Mach03

ASKER

Yes that's correct.
When you launch a test application, the default is "http://localhost" which in turn is "127.0.0.1" as an IP address.  I want to change this to my computer IP so I can see it from another computer.
Avatar of Ted Bouskill
Ted Bouskill
Flag of Canada image

Well the IP that is used to launch tests in Visual Studio are just temporary for development.  If you want another computer to see the web application you have to publish it to a running IIS instance.

So you need IIS running somewhere then you need to publish or deploy your web application to that copy of IIS to then give others access.
Avatar of Mach03
Mach03

ASKER

Would  you happen to know the set of procedures to make that happen?

Thanks
Avatar of Ted Bouskill
Ted Bouskill
Flag of Canada image

Do you have any experience setting up web applications other than running one in Visual Studio?
Avatar of Mach03
Mach03

ASKER

Yes, I setup IIS websites all the time on W2K and W03 servers sure.
ASKER CERTIFIED SOLUTION
Avatar of Ted Bouskill
Ted Bouskill
Flag of Canada image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of Ted Bouskill
Ted Bouskill
Flag of Canada image

Based on your feedback I gave you the correct information.
.NET Programming
.NET Programming

The .NET Framework is not specific to any one programming language; rather, it includes a library of functions that allows developers to rapidly build applications. Several supported languages include C#, VB.NET, C++ or ASP.NET.

137K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo