简体   繁体   English

如何使用同一路由器连接两台计算机?

[英]How do I connect two computers using the same router?

I'm using the python socket module on a Mac.我在 Mac 上使用 python 插座模块。

How do I connect two computers using the same router?如何使用同一路由器连接两台计算机? I need a TCP socket with fast data passing between.我需要一个 TCP 套接字,可以快速传递数据。

When I tried just hooking two computers up by their private ip address, then I got a Connection Refused error.当我尝试通过它们的私有地址 ip 连接两台计算机时,我收到了连接被拒绝的错误。 How do I do this?我该怎么做呢?

You can check first whether connection is allowed between two devices by going to one device and running te.net.您可以首先检查两个设备之间是否允许连接,方法是转到一个设备并运行 te.net。

telnet <Private-IP-of-Second-Device> <Port>

If this shows connected then connectivity is good and issue exists with the socket module you have written.如果这显示已连接,则连接良好并且您编写的套接字模块存在问题。 If this fails you can try checking the firewall by going to System Preferences > Security & Privacy > Firewall.如果失败,您可以尝试通过转到“ System Preferences > Security & Privacy > Firewall.

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用Visual Basic锁定桌面并以局域网连接计算机? - How to lock the desktop using visual basic and connect the computers in lan? 同一网络中两台计算机之间的客户端-服务器应用程序(使用boost :: asio) - Client-server application between two computers in the same network (using boost::asio) 使用c#在两台计算机(例如超级光束)上安装的相同软件之间进行连接 - connection between the same software installed on two computers like superbeam using c# 如何连接到局域网上并通过路由器连接到互联网的计算机? - How do i connect to a computer which is on LAN and connected to internet via router? 如何使用Java通过LAN连接到Access数据库? - How do I connect to an Access database over a LAN using Java? 在 cisco 路由器上为两个端口配置相同的 VLAN - Configure same VLAN on cisco router for two ports 使用WAN IP连接到连接到路由器的设备 - Using WAN IP to connect to a device connected to router 如何通过 ip 地址使用另一台设备连接到我的 Django 本地网络服务器? - How do I connect to my Django local webserver using another device through ip address? 如何使两个应用程序通过局域网找到并连接? - How can I make two apps find and connect via LAN? 如何仅根据IP地址范围获得LAN上的计算机? - How can I get only computers on LAN based on IP address range?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM