Home AMX User Forum NetLinx Studio

Netlinx IP Communication (TCP/IT Server Listening on Port 86)

I am trying to program Netlinx as a Server so it will listen on a given port. I am at a point where I can telnet to the port I'm listening on however the Netlinx program drops the connection automatically after some time. Once the connection is dropped I cannot telnet to the same port again until the unit is rebooted. This issue also occurs when I manually disconnect the telnet session. It won't allow me to reconnect.

Has anyone seen this issue before? Please see attached zip file...

Any help would be appreciated as I am pulling my hair out on this issue...

Thanks in advance,

RMR

Comments

  • mpullinmpullin Posts: 949
    It's because you never reopen the port. You need something like this:
    offline:{
    	IP_SERVER_CLOSE(DATA.DEVICE.PORT)
    	IP_SERVER_OPEN(DATA.DEVICE.PORT,SERVER_PORT,1) // reopen server port
        }
    
  • Thank you mpullin for the quick reply, I'll give it a shot and let you know how it turned out.
Sign In or Register to comment.