Solved

Distributed C# Application under proxy network.

Posted on 2008-10-10
3
265 Views
Last Modified: 2012-05-05
I have 2 LAN:
1. Machine A (winxp) in LAN 1. This computer has no direct connection to the internet, it must use a local proxy server PS at port number 81 with username/password to go to internet. There, we have Application 1
2. Machine B (win xp) in LAN 2. This computer has connection to internet thru a local gateway, that means it has no public ip. There, we have Application 2

The 2 LANs are connected thru internet.
My question is: How can these appications in C# can interact overnetwork? Is it possible?  If yes, then how?

If there are any unclear points, just ask me again.

Thank you a lot.
0
Comment
Question by:rambovn
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 5

Accepted Solution

by:
johnaryan earned 500 total points
ID: 22685619
I see where you're coming from, but in order for a situation like this to work you'd have to configure both machines to be visible to the internet, and then provide a service that exposes the functionality of each to the outside world. This does require a good knowledge of your underlying architecture and hardware. The trouble here is the Proxy server and it's build in firewall is there to stop people doing what you're trying to do, so you'll need access to it to configure to allow unsolicited communication from the outside world.

From what I can see the easyiest solution (if you have permissions on the proxy server) is:
Machine A:
Create a Web Service/ WCF Service or remoting interface to the functionality you want to expose.
Use Port Forwaring (also knows as NAT Forwarding) on the proxy to allow internet traffic through to port 80 on Machine A

Machine B:
Create a Web Service/ WCF Service or remoting interface to the functionality you want to expose.
Use Port Forwaring on the local gateway (is it a router) to allow internet traffic through to port 80 on Machine B

Then configure both your apps to use the interface provided by the other.

John
0
 
LVL 8

Author Comment

by:rambovn
ID: 22701781
Thank you. Do you have any other solution that requires less permission in the side of Machine A?

I wonders how Teamviewer works (http://www.teamviewer.com/index.aspx). It works fine with ours machines without port forwarding or any special permission.
0
 
LVL 5

Expert Comment

by:johnaryan
ID: 22702342
Afraid not, if Machine A's only access to the internet is through the proxy, then all incoming traffic will need to know where to find it (hence the port forwarding.) I don't know of any other way to let the outside world access to a machine on your LAN.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question