公司有一台内网服务器,我需要访问它的某个端口就得做端口映射。我用runassrv.exe这款可以添加任何exe文件为服务的程序,把Packet Transmit.exe添加为了服务。命令我是这么写的,不知道有没有错啊,不过还是能正常启动的。望高手赐教。
外网服务器上的:
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
内网服务器上的:
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
服务都启动好了,映射也是成功的。可为什么隔几个小时,外网这台服务器的服务会自动停止呢。而且重启了外网服务器也不行,结果还是一样的。我测试了很多遍。所以真的是搞不清楚是怎么回事。希望有知道的高手能指教下。太感谢了。
外网服务器上的:
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
内网服务器上的:
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
服务都启动好了,映射也是成功的。可为什么隔几个小时,外网这台服务器的服务会自动停止呢。而且重启了外网服务器也不行,结果还是一样的。我测试了很多遍。所以真的是搞不清楚是怎么回事。希望有知道的高手能指教下。太感谢了。

