Call for Submission
NAB 2012 Best of the Best Show Reel
Submit your work today!
  • 1/3
You are here: Forum Home / Autodesk® Maya® / Python / commandPort doesn’t work in Vista 32
  RSS 2.0 ATOM  

commandPort doesn’t work in Vista 32
Rate this thread
 
23767
 
Permlink of this thread   Subscribe to this thread
avatar
  • paolodom
  • Posted: 07 March 2009 10:46 AM
  • Total Posts: 1
  • Joined: 14 November 2006 07:18 PM

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")
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.

Any idea?



Replies: 0
avatar
  • agrant3d
  • Posted: 18 March 2009 01:34 PM

I’m on Vista 64 and I’m not having any luck getting commandPort to work either.
Any input on whether this works would be great.



Replies: 0
avatar
  • agrant3d
  • Posted: 20 March 2009 02:23 PM

After some trial and error I was able to get commandPort to consistently work.  I had it work sometimes, and then not other times.

I found that what I had to do is run the commandPort command twice. Like so:

commandPort -eo -"127.0.0.1:7890";
commandPort -eo -":7890";

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
/img/forum/dark/default_avatar.png

Thanks.

I was trying to connect Cutter to MAya with a Vista system and had a similar connection problem. Your solution is brilliant.

Author: stephen_weber

Replied: 28 July 2009 09:49 AM  
/img/forum/dark/default_avatar.png

Thanks a lot for posting this. It solved my problem too. Same here maya 2009 and Vista64

Author: Maulik

Replied: 24 December 2009 11:29 AM  
avatar
  • ncruz
  • Posted: 20 January 2010 01:54 AM

Hey guys,

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.

MAYA_IP_TYPE = ipv4

this should get around your port issue.

cheers!



Replies: 0
avatar

I have tried all of the above solutions in Maya 2011 64-bit and Mudbox 2011 64-bit and nothing seems to work…

I can export from Maya into Mudbox (usually with FBX errors!) but I cannot “send to Maya” from within Mudbox.

Really very annoying…

Again thanks for the information, at least it taught me more about the Script Editor.



______________________________
MIDIManNI (aka Ivan Flack)
Cookstown, N. Ireland

Replies: 0




   
  Settings Choose Theme color: