DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Join Date
    Jul 2006
    Posts
    91

    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

  2. #2
    Join Date
    Nov 2003
    Location
    Portland, OR
    Posts
    8,387
    Sure, the URL would be http://machinename/appname/
    Phil Weber
    http://www.philweber.com

    Please post questions to the forums, where others may benefit.
    I do not offer free assistance by e-mail. Thank you!

  3. #3
    Join Date
    Jul 2006
    Posts
    91
    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

  4. #4
    Join Date
    Nov 2003
    Location
    Portland, OR
    Posts
    8,387
    You may need to use the IP address (e.g., http://xx.xx.xx.xx/appname/), but yes, it should work.
    Phil Weber
    http://www.philweber.com

    Please post questions to the forums, where others may benefit.
    I do not offer free assistance by e-mail. Thank you!

  5. #5
    Join Date
    Jul 2006
    Posts
    91
    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

Similar Threads

  1. Replies: 1
    Last Post: 02-07-2007, 09:55 AM
  2. Advantages of ASP.NET over Java/ASP
    By Tricia in forum .NET
    Replies: 0
    Last Post: 04-11-2003, 09:34 PM
  3. Free ASP.NET Web Matrix Design/Editor Tool Released
    By ASPSmith Training in forum dotnet.announcements
    Replies: 0
    Last Post: 06-18-2002, 03:39 AM
  4. Deploying ASP.NET applications
    By Martin Halford in forum ASP.NET
    Replies: 0
    Last Post: 02-08-2002, 11:45 PM
  5. Deploying ASP.NET Web Applications
    By Tomas in forum ASP.NET
    Replies: 0
    Last Post: 08-26-2001, 02:45 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links