?
Solved

Distributed C# Application under proxy network.

Posted on 2008-10-10
3
Medium Priority
?
266 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 1500 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

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them.

Question has a verified solution.

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

In order to hide the "ugly" records selectors (triangles) in the rowheaders, here are some suggestions. Microsoft doesn't have a direct method/property to do it. You can only hide the rowheader column. First solution, the easy way The first sol…
Introduction Although it is an old technology, serial ports are still being used by many hardware manufacturers. If you develop applications in C#, Microsoft .NET framework has SerialPort class to communicate with the serial ports.  I needed to…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses

764 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