Solved

Distributed C# Application under proxy network.

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Bit flags and bit flag manipulation is perhaps one of the most underrated strategies in programming, likely because most programmers developing in high-level languages rely too much on the high-level features, and forget about the low-level ones. Th…
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…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

743 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now