Home > Back-end >  In DELPHI under the code of a using IdMappedPortTCP port mapping
In DELPHI under the code of a using IdMappedPortTCP port mapping

Time:10-12

Want to achieve, a network port, map back to outer net machine, for example, a network of machines, open 33889, I tell you the port mapped to the network server, access web server, can access to the machine's port 3389 ~

CodePudding user response:

This component can be easily implemented

CodePudding user response:

Ah, always there is no reply,

CodePudding user response:

The same demand @!

CodePudding user response:

Is the network server port mapping to the Intranet, programs to open out web server,

CodePudding user response:

Route map ah, should not be here.

CodePudding user response:

Procedure TForm1. Button1Click (Sender: TObject);
The begin
IdMappedPortTCP1. Active:=False;
IdMappedPortTCP1. DefaultPort:=999;//local listening port
IdMappedPortTCP1. MappedHost:='127.0.0.1;//forward target IP
IdMappedPortTCP1. MappedPort:=888;//forward target port
IdMappedPortTCP1. Active:=True;
end;

//you should be on the route map

CodePudding user response:

Set the routing can be!
Or under the Linux server Settings can also be!
Doesn't seem to need a code!
Ha ha!

CodePudding user response:

7 # is right, you are not developing code this problem, you or understand how your router mapping in the Internet bar,

CodePudding user response:

Routing, there are several types, generally is open routing, under this route, your program only needs to be accessed through the routing the outside network, routing will help you establish a routing record, data, after the network routing, as the road to the data to you,
  • Related