On 2/28/2012 2:03 AM, Chris Morley wrote: > > > >>> CL requires the address and the port number (9502 id default). >>> I somewhat understand the address but not really the port number. >>> Can you elaborate how you found this info? keep in mind I have >>> almost no knowledge of networks other then plugging in my ethernet cable >>> in to my cable internet router. :) >>> >>> Chris M >>> >>> > When I fire up classicladder (I'm using the parent version not EMC's) > then run sudo netstat -anp --tcp > I see: > tcp 0 0 0.0.0.0:9503 0.0.0.0:* LISTEN > 20701/classicladder > > so that is address 0.0.0.0 port 9502 and its waiting for someone to connect > to it. > > I can change the port number. > I'm not sure how to change that address. > > Chris M > >
The IP address is set via Linux for your computer.. it is under administrator, network something. I don't that that Linux or Windows considers 0.0.0.0 a legitimate IP address, meaning it has not be configured. I think that Linux comes out of the box setup for DHCP so that it asks what IP address it should be and if a router assigns it an address that is what it becomes. When I was doing the Modbus TCP testing, I first had my laptop and the Linux/EMC2 box on the same network and my router assigned both devices an IP address. (OK, so I am lazy. if the computer can get onto the web, I know it has a legit IP address.) So it was a simple matter set the slave address in EMC2 to the IP address of my laptop that was running the Modbus test software. Once the addresses were set I also tried the same setup without a switch via a point to point crossover ethernet cable and that worked fine as well. Since both computers were already assigned IP addresses by my network router, they didn't have to be changed. My router ( a linksys) assigns itself as 192.168.1.1 and then assigns any device using DHCP addresses starting at 192.168.1.100 and goes up from there. I think that Netgear uses addresses that start at 10. for whatever reason. Dave ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
