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
Solved

Distributed C# Application under proxy network.

Posted on 2008-10-10
3
263 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
  • 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

809 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