Comments (4)
执行这条命令的服务器ip地址是123.206.58.202吗,有的云服务用的是NAT内网映射,所以本地实际上是一个局域网地址,看一下当前机器的实际IP地址
from socket-pipe.
可以了,用ipconfig/all 看了实际的ipv4地址,然后把公网ip换成了实际的ip,tcp能正常映射了。
8080能正常映射,映射端口换成80后出现下面的问题。
C:\Users\Administrator>socket-pipe -l 10.141.9.95@18888 -r 10.141.9.95@80 -t tserver
Piping 10.141.9.95@18888 to 10.141.9.95@80 via tserver
{ Error: listen EACCES 10.141.9.95:80
at Object._errnoException (util.js:1021:11)
at _exceptionWithHostPort (util.js:1043:20)
at Server.setupListenHandle [as _listen2] (net.js:1327:19)
at listenInCluster (net.js:1385:12)
at doListen (net.js:1494:7)
at _combinedTickCallback (internal/process/next_tick.js:141:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
at Function.Module.runMain (module.js:667:11)
at startup (bootstrap_node.js:187:16)
at bootstrap_node.js:608:3
code: 'EACCES',
errno: 'EACCES',
syscall: 'listen',
address: '10.141.9.95',
port: 80 }
connected 122.206.190.62:10644
from socket-pipe.
应该是主机对80端口的权限做了限制,我对windows的权限不熟悉,我猜可以试试在管理员模式下运行试试
from socket-pipe.
Centos下测试成功
from socket-pipe.
Related Issues (2)
- 关于端口转发的问题 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from socket-pipe.