This is because the command port is defaulting to use IPV6 on Vista.
You can connect to your port like this:

maya=socket.socket(socket.AF_INET6, socket.SOCK_STREAM)
maya.connect(("::1",6000))

The workaround you mention just creates two ports, one IPV4 and one
IPV6.

-Chris

On Sep 14, 6:24 pm, AK Eric <[email protected]> wrote:
> I'm trying something I've used for years, on Maya2008\win2k:
>
> In maya:
> commandPort -n ":6000" -echoOutput;
>
> In Python (external to Maya):
> import socket
> maya = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
> maya.connect(("127.0.0.1", 6000))
>
> But I now get his error in Maya2010 64bit \ Vista
> socket.error: [Errno 10061] No connection could be made because the
> target machine actively refused it
>
> Any ideas?
>
> thx
--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/python_inside_maya
-~----------~----~----~----~------~----~------~--~---

Reply via email to