Windows LAN套接字连接

时间:2014-11-28 19:21:43

标签: python windows macos sockets networking

我在同一局域网中有两台笔记本电脑(一台macbook pro和一台Windows 7)。 我尝试通过socket连接它们。

如果我使用macbook pro作为服务器而Windows 7作为客户端,它们可以正常工作。

但我需要Windows 7一个是服务器,它不起作用。 我正在使用python,当我的macbook pro是客户端并尝试连接时,我收到错误:

Traceback (most recent call last):
File "renderer_client.py", line 9, in <module>
s.connect(('192.168.56.1', port))
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/socket.py", line 224, in meth
return getattr(self._sock,name)(*args)
socket.error: [Errno 61] Connection refused

我怀疑我的Windows 7拒绝操作系统级别的连接。

我尝试直接从我的macbook pro使用traceroute连接到我的Windows 7,但它失败了。

我猜是阻止连接的防火墙。我在windows7中关闭了我的防火墙,但它仍然无法正常工作。我该怎么办?

0 个答案:

没有答案