China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-01 11:12
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » Problems with adding any EXE file as a service using runassrv View 3,064 Replies 14
Original Poster Posted 2010-05-05 09:11 ·  中国 安徽 合肥 电信
初级用户
Credits 30
Posts 27
Joined 2008-09-12 11:15
17-year member
UID 125467
Gender Male
Status Offline
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.
Floor 2 Posted 2010-05-05 09:21 ·  中国 北京 联通
银牌会员
★★★★
[b]看你妹啊[/b]
Credits 1,488
Posts 1,357
Joined 2006-05-20 12:00
20-year member
UID 55770
Status Offline

有问题请发论坛或者自行搜索,再短消息问我的统统是SB
Floor 3 Posted 2010-05-05 10:11 ·  中国 安徽 合肥 电信
初级用户
Credits 30
Posts 27
Joined 2008-09-12 11:15
17-year member
UID 125467
Gender Male
Status Offline
Well, can the brother above upload some usage materials about this software? There are no relevant materials in Baidu, Google, etc. Thanks.
Floor 4 Posted 2010-05-05 10:21 ·  中国 北京 联通
银牌会员
★★★★
[b]看你妹啊[/b]
Credits 1,488
Posts 1,357
Joined 2006-05-20 12:00
20-year member
UID 55770
Status Offline
Please post questions on the forum.

有问题请发论坛或者自行搜索,再短消息问我的统统是SB
Floor 5 Posted 2010-05-05 10:44 ·  中国 安徽 合肥 电信
初级用户
Credits 30
Posts 27
Joined 2008-09-12 11:15
17-year member
UID 125467
Gender Male
Status Offline
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?
Floor 6 Posted 2010-05-05 11:49 ·  中国 北京 联通
银牌会员
★★★★
[b]看你妹啊[/b]
Credits 1,488
Posts 1,357
Joined 2006-05-20 12:00
20-year member
UID 55770
Status Offline

有问题请发论坛或者自行搜索,再短消息问我的统统是SB
Floor 7 Posted 2010-05-05 12:06 ·  中国 安徽 合肥 电信
初级用户
Credits 30
Posts 27
Joined 2008-09-12 11:15
17-year member
UID 125467
Gender Male
Status Offline
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
未命名2.PNG
Floor 8 Posted 2010-05-05 12:15 ·  美国 惠普HP
版主
★★★★★
Credits 9,023
Posts 5,017
Joined 2007-05-31 19:39
19-year member
UID 89899
Gender Male
Status Offline
The anti-hotlinking of the picture is very successful
Floor 9 Posted 2010-05-05 12:43 ·  中国 安徽 合肥 电信
初级用户
Credits 30
Posts 27
Joined 2008-09-12 11:15
17-year member
UID 125467
Gender Male
Status Offline
I'm sorry, it should be okay now.
Floor 10 Posted 2010-05-05 15:17 ·  中国 北京 联通
银牌会员
★★★★
[b]看你妹啊[/b]
Credits 1,488
Posts 1,357
Joined 2006-05-20 12:00
20-year member
UID 55770
Status Offline
Tried it, PASSPORT can't forward port data from other services to other servers. So, better not use PASSPORT.

有问题请发论坛或者自行搜索,再短消息问我的统统是SB
Floor 11 Posted 2010-05-05 18:11 ·  中国 安徽 合肥 电信
初级用户
Credits 30
Posts 27
Joined 2008-09-12 11:15
17-year member
UID 125467
Gender Male
Status Offline
Hey, my heart is broken. I thought it would be okay.
Floor 12 Posted 2010-05-05 18:44 ·  中国 北京 联通
银牌会员
★★★★
[b]看你妹啊[/b]
Credits 1,488
Posts 1,357
Joined 2006-05-20 12:00
20-year member
UID 55770
Status Offline
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.

有问题请发论坛或者自行搜索,再短消息问我的统统是SB
Floor 13 Posted 2010-05-06 00:02 ·  中国 安徽 合肥 电信
初级用户
Credits 30
Posts 27
Joined 2008-09-12 11:15
17-year member
UID 125467
Gender Male
Status Offline
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
Floor 14 Posted 2010-05-06 10:33 ·  中国 北京 联通
银牌会员
★★★★
[b]看你妹啊[/b]
Credits 1,488
Posts 1,357
Joined 2006-05-20 12:00
20-year member
UID 55770
Status Offline
You try binding the port for SSH again.

有问题请发论坛或者自行搜索,再短消息问我的统统是SB
Floor 15 Posted 2017-07-25 11:20 ·  中国 山东 联通
新手上路
Credits 1
Posts 1
Joined 2017-07-24 21:37
9-year member
UID 182411
Gender Male
Status Offline
Posting a reply earns points.
Forum Jump: