Solved

Distributed C# Application under proxy network.

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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Loop not working 29 53
C# Json POSt to Rest API 4 60
Video Player 11 22
Winform Module - What is the ASP.Net equiv 2 19
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…
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!
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

816 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

10 Experts available now in Live!

Get 1:1 Help Now