How to send a response to an asp.net web form request through another server

I have two web servers with public IP addresses, for example Server1 with IP 111.111.111.111and Server2 with IP 222.222.222.222. Please see image:

flow diagram

There is an asp.net web form on server 1 . My intention:

  • For each HTTP request for this web form in Server1, Server1 simply passes the request information to Server2 for logical processing , and then Server2 sends a back to client response (i.e. a normal browser)

My questions:

  • , Server1 Server2, Server2 ? , Server2 TcpListener. TcpListener - Server1.
  • (.. System.Net , System.Net.Sockets) Server2 ? .
+3
6

, :)

, , - aspx ANSWER. , Server2 ANSWERER .

, - , :

1. , Server1 URL- . url Server2. Server2 URL- lan Server1)

2. Server2.

, - Server1 Server2. .

+1

- WCF .

ASP.NET WCF/Web Services WCF, Windows WCF, Windows -,

msdn:

- ASP.NET

ASP.NET Windows Communication Foundation .NET

enter image description here

+2

, , phisher , .

, , , . .

, -, .

+1

, , Server2 .

, Server1.

- , - - . : -, 1, 2, , .

1 .

+1

, 1 http. , , 2 TCP. , clien doenst - 2.

, 2 1 tcp 1 . (, 2 )

. , , , , .

+1

, 2, 1 server2. 1 . server2 , 2.

System.Net.HttpWebRequest HTTP ( , 1 2), 2 .

If you have done this, you will run an application that simply redirects any requests to server2 and thus launches a dummy application. This application can be very simple, because in reality it is nothing but an HTTP proxy.

However, I have to ask again, for what purpose? Is your building some kind of query filtering mechanism? because I believe that there are better ways to solve this problem.

+1
source

All Articles