suggestion for remoting port

 
 
 
Posted by:SITT
Data created:6 May 2010

if  default port is use

curent port += 1

 

Can do this?

You can change the remoting port in configuration, look inside Utilities tab, under MaxDotNet

Marsel Khadiyev (Software Developer, EPHERE Inc.)

I often start multiple Max

auto change May be more convenient

Ok, I can add this for 1.2, but then how will you know which port to use?

Marsel Khadiyev (Software Developer, EPHERE Inc.)

Slightly related, but would it be possible that when multiple max are launched with Remoting enabled that the Autodesk.Max.dll (1.2.8, Remoting 1.2.6) doesn't crash?

System.Net.Sockets.SocketException: Only one usage of each socket address (protocol/network address/port) is normally permitted
   at System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress)
   at System.Net.Sockets.Socket.Bind(EndPoint localEP)
   at System.Net.Sockets.TcpListener.Start(Int32 backlog)
   at System.Net.Sockets.TcpListener.Start()
   at System.Runtime.Remoting.Channels.ExclusiveTcpListener.Start(Boolean exclusiveAddressUse)
   at System.Runtime.Remoting.Channels.Tcp.TcpServerChannel.StartListening(Object data)
   at System.Runtime.Remoting.Channels.Tcp.TcpServerChannel.SetupChannel()
   at System.Runtime.Remoting.Channels.Tcp.TcpServerChannel..ctor(IDictionary properties, IServerChannelSinkProvider sinkProvider, IAuthorizeRemotingConnection authorizeCallback)
   at System.Runtime.Remoting.Channels.Tcp.TcpChannel..ctor(IDictionary properties, IClientChannelSinkProvider clientSinkProvider, IServerChannelSinkProvider serverSinkProvider)
   at Autodesk.Max.Manager.SetRemoting(Boolean on)

Like in Motionbuilder for example, we can start many and send a remote command. Only one of the instance will catch it and it's fine for us.

Could you mute this crash? Try/catch maybe?

Thanks,

    -Oli

Thanks for the suggestion Oli. I suppose this stuff should be written to a log file instead of not catching the exception at all.

Marsel Khadiyev (Software Developer, EPHERE Inc.)