I sent that last mail too soon. Forgot the disclaimer: It is a bad idea to open a command port on the network interface (or any public one), because anybody can connect to it and have Maya do arbitrary system commands without any authentication. This is the reason it is by default a local port.
At least with your own python socket, you can handle the incoming data and do exactly and only what you want. The commandPort is just a port to any Maya command you want. On Sat, Oct 13, 2012 at 1:40 PM, Justin Israel <justinisr...@gmail.com> wrote: > Open your command port on a network IP: > > cmds.commandPort(n="192.168.1.2:7000") > > > On Sat, Oct 13, 2012 at 1:37 PM, Justin Israel <justinisr...@gmail.com> wrote: >> If you are writing a chat program, take Nick's advice and create your >> own socket in a thread from within Maya. The Maya commandPort is only >> really useful for directly calling the API, and from the local >> machine. You probably want to have a custom listener socket open on >> the network IP. >> >> >> On Sat, Oct 13, 2012 at 1:28 PM, Ali Khanbabaei <ali.kh....@gmail.com> wrote: >>> no i am not sure.but i just think it happened. >>> i want write a simple chat program in maya and i need connect from >>> network.how i can send message to client? >>> On Saturday, October 13, 2012 11:39:40 PM UTC+3:30, Justin Israel wrote: >>>> >>>> Are you sure that exact code worked before? I could swear you need to >>>> access it on a local ip address: >>>> >>>> HOST ="127.0.0.1" >>>> >>> -- >>> view archives: http://groups.google.com/group/python_inside_maya >>> change your subscription settings: >>> http://groups.google.com/group/python_inside_maya/subscribe -- view archives: http://groups.google.com/group/python_inside_maya change your subscription settings: http://groups.google.com/group/python_inside_maya/subscribe