套接字连接不适用于无IP地址 [英] Socket connection not working with no-ip address

查看:69
本文介绍了套接字连接不适用于无IP地址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的套接字连接有问题.当我用"localhost"替换no-ip地址时,它可以正常工作,但是一旦输入no-ip地址,它就无法连接.我已经从路由器转发了端口(端口12345将TCP和UDP转发到了本地IP地址192.168.1.116).我不明白为什么它会与"localhost"一起工作,而不与"myaddress.no-ip.org"一起工作.据我了解,您所要做的就是将路由器上的端口转发到您的本地IP地址.

I am having an issue with my socket connection. When I replace my no-ip address with "localhost" it works fine, but as soon as I put in my no-ip address, it cannot connect. I have forwarded the port from my router (port 12345 TCP and UDP forwarded to my local IP address 192.168.1.116). I don't understand why it would work with "localhost" but not with "myaddress.no-ip.org". It was of my understanding all you had to do was forward the port on your router to your local IP address.

推荐答案

好的,这是最可能解决该问题的方法.我从时代华纳(RoadRunner)获得的调制解调器具有内置的调制解调器.我必须让他们桥接连接,以便它通过路由器.我的路由器正在寻找端口12345上的东西,以便可以将其定向到我的计算机.问题是TWCs路由器没有将其转发到我的路由器.桥接连接后,它应仅通过调制解调器到达我的路由器.

OK, here is the most probable solution to the problem. The Modem that I have from Time Warner (RoadRunner) has a built in modem. I have to get them to bridge the connection so it passes through the router. My router was looking for something to come in on port 12345 so it could direct it to my computer. The problem was that TWCs router wasn't forwarding it to my router. After bridging the connection, it should just pass through the modem to my router.

这篇关于套接字连接不适用于无IP地址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆