Use the search and browse feature to view Kepware's repository of more than 500 Knowledge Base articles. Narrow your results or type your query into the search field below.

Search Solutions Results By: View All Solutions

Kepware Knowledge Base: Solution


Unable to Connect to a GE 90/30 Controller via the CMM 321 Ethernet Card on Windows Vista/2008/7


Last Update: 11/7/2018

Problem:
A server project running on a Windows 2003 or older operating system can connect to and receive data from the GE controller without any problems, but will fail when running on a Windows Vista or higher operating system.

Possible Cause:
The dynamic port range used by the Windows operating system exceeds the range of source ports that are allowed by the communications card for connectivity. Windows 2003 and older operating systems have a default dynamic port range of 1025 to 5000. These ports are assigned by the operating system to the server when it asks to create a socket for communications with a device. To comply with Internet Assigned Numbers Authority (IANA) recommendations, Microsoft has increased the dynamic client port range for outgoing connections in Windows Vista, Windows Server 2008, and Windows 7. The new default start port is 49152, and the default end port is 65535. GE CMM321 communications models running older firmware versions do not support this new range of ports as source ports on connections.

Solution:
1. Update the communications card's firmware if possible.
2. Change the operating system's dynamic port range using the netsh command. For more information, refer to the subtopics below.

Windows Vista and 2008 Server Netsh Commands

  1. To start, open the DOS command prompt.
  2. Type "netsh int ipv4 show dynamicport tcp" and press Enter to display the current default port range.
  3. Next, change the default port range by entering "netsh int ipv4 set dynamicport tcp start=10000 num=10000". Choose the starting port number and the number of dynamic ports.
  4. Once the port range has been set, the operating system will return an OK.
  5. Next, restart the operating system. Then, check the port range to ensure that it is now set correctly.

Windows 7 Netsh Commands

  1. To start, open the DOS command prompt.
  2. Type "netsh int ipv4 show dynamicportrange tcp" and press Enter to display the current default port range.
  3. Next, change the default port range by entering "netsh int ipv4 set dynamicportrange tcp startport=10000 numberofports=20000". Choose the starting port number and the number of dynamic ports.
  4. Once the port range has been set, the operating system will return an OK.
  5. Next, restart the operating system. Then, check the port range to ensure that it is now set correctly.

Note: Check with the network manager to ensure that there are no group policies in place that will prohibit the PC's dynamic port range from changing.

Related Products
GE Ethernet, GE Suite