Can i get the remote client ip and port which connect to server socket in flexsim
Can i get the remote client ip and port which connect to server socket in flexsim
You create a server socket that listens for connections to a specified port using servercreatemain(). So, you choose the port number. Your client needs to know the IP address of your server, but I'm not sure if you can access your client's IP address.
Does this help, or were you trying to ask about something else? Would an example of using a socket be useful?
If you're able to attach your model, that would be helpful.
Hi @yexioamu, was one of Natalie White's or Phil BoBo's answers helpful? If so, please click the "Accept" button at the bottom of the one that best answers your question. Or if you still have questions, add a comment and we'll continue the conversation.
If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always comment back to reopen your question.
The FlexScript socket commands do not give you access to the connecting client's ip address. The serveraccept() function returns an index for the client connection that is subsequently used to receive messages from that client using serverreceive().
If you want more control over the communication than you get with the FlexScript commands, use external code, such as Python or C++. See Connecting to External Code.
See also accept function (C++) or socket.accept (Python).
16 People are following this question.
FlexSim Socket Communication Error (Example by Logan Gold)
How to connect two clients at the same time when using socket communication?
how to develop a live feed for the DES model
Chinese character encodes error imported from socket to FlexSim.
under socket,the 3D animation of flexsim model is discontinuous
FlexSim can help you understand and improve any system or process. Transform your existing data into accurate predictions.
FlexSim is a fully 3D simulation software environment. FlexSim can be used to simulate any process in any industry.
FlexSim®, FlexSim Healthcare™, Problem Solved.®, the FlexSim logo, the FlexSim X-mark, and the FlexSim Healthcare logo with stylized Caduceus mark are trademarks of FlexSim Software Products, Inc. All rights reserved.
Privacy | Do not sell or share my personal information | Cookie preferences | Report noncompliance | Terms of use | Legal | © Autodesk Inc. All rights reserved