Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

Communicating between ASP.Net applications

Hi,

If we have two windows machines(say A and B) on which we have installed IIS and ASP.NET 2003. And say App-A is on machine-A and App-B is on second machine. If both machines are connected by an Ethernet cable or Lan cable But not connected to Internet.
Can we access App-B on machine-B, by clicking on URL of App-B within App-A on machine-A. Because, both machines are not servers they are just normal workstations. So, if I have an application named App-A, the URL of it would be
"http://localhost/App-A/default.aspx"
So, we can see that "localhost" is the default webserver name for both windows machines, so this is the reason I want to know wether we can call App-B on Machine-B from App-A on Machine-A, if both machines are connected through Ethernet cable or Lan, But are not connected to Internet?.

Thanks,
Srinivas
[860 byte] By [srinivasc_it] at [2007-11-11 10:29:02]
# 1 Re: Communicating between ASP.Net applications
Sure, the URL would be http://machinename/appname/
Phil Weber at 2007-11-11 23:11:52 >
# 2 Re: Communicating between ASP.Net applications
Hi Phil,

What, I have is two laptops, connected through wireless network. I pinged one another and I got the reply from both. So, if I move one application to the second laptop. And pass values from one to another from dotnet application, will the above method work?. I am asking this because I need to install .net and IIS on 2nd laptop to see it works or not. Bcause both will be clients none of the laptop is configures as server.

Thanks,
Srinivas
srinivasc_it at 2007-11-11 23:12:48 >
# 3 Re: Communicating between ASP.Net applications
You may need to use the IP address (e.g., http://xx.xx.xx.xx/appname/), but yes, it should work.
Phil Weber at 2007-11-11 23:13:47 >
# 4 Re: Communicating between ASP.Net applications
Hi Phil,

I tested it on both laptops, it din't work. Both laptops are on same wireless network/domain, I pinged them and I got replies from both.

Just a quick question. In laptop-A, I opened internet explorer and in the address bar I typed "http://192.168.1.100/test/welcome.aspx" (this is the URL of laptop-B). And then pressed enter, it says page cannot be displayed.
If at all, what we were discussing so far works. I think that particular webpage on laptop-B must be displayed in IE of laptop-A?. So since it is not getting displayed I think this will not work?. What do you say?.

If that is the case, this will work only if one of the laptop is configured as Server and other as client?

Thanks,
Srinivas
srinivasc_it at 2007-11-11 23:14:46 >