Integrations (PTC products, 3rd party products and code) > Code integration (Ada, ARINC 653, C, C#, C++, IDL, Java, SQL and VB) > C Code > Generating C Code > Overview of generating C code (C code) > Overview of modeling C code (C code) > Overview of modeling C code (C code) > Changing the port used for simulation of a system (C code)
  
Changing the port used for simulation of a system (C code)
By default, a generated application uses TCP/IP Port 1577 to send notification calls to Modeler when performing a simulation of a system. If you want to use a different port, you must set up both the application and the computer performing the system simulation to use the same port.
* 
If your Modeler installation is an upgrade, the default TCP/IP Port may be set to 4242 rather than 15777
To set up a different port for simulation:
1. On the computer that is going to generate the application, open the Registry.
To open the registry under Windows 10: In the Windows Search the Web and Windows box, type Regedit, and then press the Enter key.
To open the registry under Windows 8.1 or Windows Server 2012: On the Windows Apps screen, type Regedit, and then press the Enter key.
To open the registry under Windows 7: Click the Windows Start menu, type Regedit, and then press the Enter key.
To open the registry under Windows Server 2008 and earlier supported versions of Windows: On the Windows Start menu, clickRun, typeRegedit, and then press the Enter key.
2. In the left pane, locate and select the following registry key.
HKEY_CURRENT_USER\Software\Artisan Software Tools\Synchronizer\Simulation
3. 3.In the right pane, locate the PortNumber value and set its value data to port number you want to use.
a. Right-click the PortNumber entry, and then click Modify.
b. In the Value Data box, type the port number you want to use, and then click OK.
4. Save and close the registry.
After changing the registry setting, generate the code required for the simulation.