中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-09-23 12:21
47,812 topics / 349,917 posts / today 0 new / 48,273 members
DOS批处理 & 脚本技术(批处理室) » Problems with adding any EXE file as a service using runassrv
Printable Version  3,259 / 14
Floor1 xyfx Posted 2010-05-05 09:11
初级用户 Posts 27 Credits 30
Our company has an internal network server. I need to do port mapping to access a certain port of it. I used runassrv.exe, a program that can add any exe file as a service, to add Packet Transmit.exe as a service. The command I wrote, I don't know if there is any mistake, but it can still start normally. I hope experts can give advice.

On the external network server:
runassrv add /cmdline:"C:\WINDOWS\system32\pt.exe -listen 88 1111" /name:"Mysrv1" /dispname:"Network Security Communication" /desc:"To provide secure communications network, if this service is disabled, any services dependent on it will not be able to start." /starttype:autostart /unstoppable

On the internal network server:
runassrv add /cmdline:"C:\WINNT\system32\pt.exe -slave 59.61.105.11 88 127.0.0.1 1111" /name:"Mysrv1" /dispname:"Network Security Communication" /desc:"To provide secure communications network, if this service is disabled, any services dependent on it will not be able to start." /starttype:autostart

The services are all started and the mapping is successful. But why does the service on the external network server stop automatically after a few hours. And restarting the external network server doesn't work, the result is the same. I tested many times. So I really can't figure out what's going on. I really hope that experts who know can give advice. Thank you very much.
Floor2 yishanju Posted 2010-05-05 09:21
银牌会员 Posts 1,357 Credits 1,488
Floor3 xyfx Posted 2010-05-05 10:11
初级用户 Posts 27 Credits 30
Well, can the brother above upload some usage materials about this software? There are no relevant materials in Baidu, Google, etc. Thanks.
Floor4 yishanju Posted 2010-05-05 10:21
银牌会员 Posts 1,357 Credits 1,488
Please post questions on the forum.
Floor5 xyfx Posted 2010-05-05 10:44
初级用户 Posts 27 Credits 30
Well, I want to ask. My internal network server is in Shanghai. And the server I use for external network mapping is in Anhui. They are not in the same internal network. Can this passport software also achieve mapping?
Floor6 yishanju Posted 2010-05-05 11:49
银牌会员 Posts 1,357 Credits 1,488
Floor7 xyfx Posted 2010-05-05 12:06
初级用户 Posts 27 Credits 30
Well, that's good. But I still didn't succeed in testing. The picture has been uploaded.

Please, experts, take a look. Thank you. I want to map port 2299 of the internal network to port 2299 of the external network.

External network server:

Internal network server:

[ Last edited by xyfx on 2010-5-5 at 12:24 ]

Attachments
未命名1.PNG (38.9 KiB)
未命名2.PNG (37.4 KiB)
Floor8 HAT Posted 2010-05-05 12:15
版主 Posts 5,017 Credits 9,023
The anti-hotlinking of the picture is very successful
Floor9 xyfx Posted 2010-05-05 12:43
初级用户 Posts 27 Credits 30
I'm sorry, it should be okay now.
Floor10 yishanju Posted 2010-05-05 15:17
银牌会员 Posts 1,357 Credits 1,488
Tried it, PASSPORT can't forward port data from other services to other servers. So, better not use PASSPORT.
Floor11 xyfx Posted 2010-05-05 18:11
初级用户 Posts 27 Credits 30
Hey, my heart is broken. I thought it would be okay.
Floor12 yishanju Posted 2010-05-05 18:44
银牌会员 Posts 1,357 Credits 1,488
Isn't it simple to set the intranet server as DMZ? Or do port mapping on the intranet gateway. For dynamic IP, then bind dynamic domain name resolution.
Floor13 xyfx Posted 2010-05-06 00:02
初级用户 Posts 27 Credits 30
Yeah, but I don't have the control rights of the router. There's no way. That internal server only has the 3389 port open. So I still want to use other ports of it
Floor14 yishanju Posted 2010-05-06 10:33
银牌会员 Posts 1,357 Credits 1,488
You try binding the port for SSH again.
Floor15 aiainue Posted 2017-07-25 11:20
新手上路 Posts 1 Credits 1
Posting a reply earns points.
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023