It’s a problem I’ve found in Maya 2009 running on Vista 32.
if you open a port in Maya, you can’t access it because you get a “connection refused” error.
You can test it running this script in the python script editor
import socket
from maya import cmds
cmds.commandPort(n=":7890") s = socket.socket() s.connect(("localhost", 7890)) s.send("sphere") s.shutdown(2) s.close()
You should see a sphere in the origin, otherwise in the case you use maya 2009 on vista 32 you will see the connection refused error.
I think is a problem that has to do with IPv6. I disabled it in my vista but it keeps displaying the same error.
Running only one of those commands would allow me to connect with Maya through telnet with Putty, but with Python I would get a ‘Connection refused’ error. It was frustrating because as I was experimenting it would occasionally work when I ran the command in that order and it took me a while to figure out why.
I’m running 2009x64 on Vistax64, I don’t know if this is a problem in other versions or OSs.
Replies: 2
Thanks.
I was trying to connect Cutter to MAya with a Vista system and had a similar connection problem. Your solution is brilliant.
I just wanted to chime in on this thread. This seems to be IPv6 issue here with Maya. So the workaround is to set a environment variable in the Maya.env to force Maya into IPv4 under Vista OS.