<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Creo VB API cannot connect when I switch network. in Customization</title>
    <link>https://www.ptcusercommunity.com/t5/Customization/Creo-VB-API-cannot-connect-when-I-switch-network/m-p/1055201#M14758</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;
&lt;P&gt;VB API and Toolkit at large leverage existing functionality.&lt;BR /&gt;Can you confirm that switching network keeps the session stable wimply with Creo Parametric ?&lt;/P&gt;
&lt;P&gt;what's the behavior when you have, let's say a model in session, then change network ?&lt;/P&gt;</description>
    <pubDate>Tue, 17 Feb 2026 16:09:54 GMT</pubDate>
    <dc:creator>remy</dc:creator>
    <dc:date>2026-02-17T16:09:54Z</dc:date>
    <item>
      <title>Creo VB API cannot connect when I switch network.</title>
      <link>https://www.ptcusercommunity.com/t5/Customization/Creo-VB-API-cannot-connect-when-I-switch-network/m-p/1055142#M14755</link>
      <description>I am using Creo Parametric Release 8.0 and Datecode 8.0.12.0&lt;BR /&gt;&lt;BR /&gt;I have some Creo VB API program. All work fine if you stay on same network all the time. If I start Creo with LAN (eternet) connection and take my laptop to a conference room with WiFi. Then I cannot connect with Creo API.&lt;BR /&gt;&lt;BR /&gt;Here are the errors that I faced&lt;BR /&gt;pfcExceptions::XToolkitNotFound&lt;BR /&gt;&lt;BR /&gt;Code:&lt;BR /&gt;Public Shared Function ACon(sender As System.Object)&lt;BR /&gt;'Connect to Creo... first with last saved connection data...&lt;BR /&gt;Dim cs As String = $"c:\ptc\Creo8\connection_string.ini"&lt;BR /&gt;Try&lt;BR /&gt;If File.Exists(cs) Then connection_id = File.ReadAllLines(cs).FirstOrDefault()?.Trim()&lt;BR /&gt;local_connId = ConId.Create(connection_id)&lt;BR /&gt;asyncConnection = ccon.ConnectById(local_connId, ".", 30)&lt;BR /&gt;Catch ex As Exception&lt;BR /&gt;If asyncConnection IsNot Nothing AndAlso asyncConnection.IsRunning Then&lt;BR /&gt;asyncConnection.Disconnect(1)&lt;BR /&gt;End If&lt;BR /&gt;End Try&lt;BR /&gt;'If it did not work above, try to connect with std connection string, if failed kill pfclscom and it might work next loop..&lt;BR /&gt;If asyncConnection Is Nothing Then&lt;BR /&gt;System.Threading.Thread.Sleep(500)&lt;BR /&gt;Try&lt;BR /&gt;If asyncConnection Is Nothing OrElse Not asyncConnection.IsRunning Then&lt;BR /&gt;asyncConnection = (New CCpfcAsyncConnection).Connect(Nothing, Nothing, Nothing, 5)&lt;BR /&gt;End If&lt;BR /&gt;Catch ex2 As Exception&lt;BR /&gt;For Each p In Process.GetProcessesByName("pfclscom")&lt;BR /&gt;Try : p.Kill() : Catch : End Try&lt;BR /&gt;Next&lt;BR /&gt;End Try&lt;BR /&gt;End If&lt;BR /&gt;'Last chance....&lt;BR /&gt;If asyncConnection Is Nothing Then&lt;BR /&gt;System.Threading.Thread.Sleep(500)&lt;BR /&gt;Try&lt;BR /&gt;If asyncConnection Is Nothing OrElse Not asyncConnection.IsRunning Then&lt;BR /&gt;asyncConnection = (New CCpfcAsyncConnection).Connect(Nothing, Nothing, Nothing, 5)&lt;BR /&gt;End If&lt;BR /&gt;Catch ex2 As Exception&lt;BR /&gt;Return asyncConnection&lt;BR /&gt;Exit Function&lt;BR /&gt;End Try&lt;BR /&gt;End If&lt;BR /&gt;Try&lt;BR /&gt;File.WriteAllText(cs, asyncConnection.GetConnectionId.ExternalRep &amp;amp; Environment.NewLine)&lt;BR /&gt;Catch&lt;BR /&gt;End Try&lt;BR /&gt;Return asyncConnection&lt;BR /&gt;End Function</description>
      <pubDate>Tue, 17 Feb 2026 08:47:01 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Customization/Creo-VB-API-cannot-connect-when-I-switch-network/m-p/1055142#M14755</guid>
      <dc:creator>LBilén</dc:creator>
      <dc:date>2026-02-17T08:47:01Z</dc:date>
    </item>
    <item>
      <title>Re: Creo VB API cannot connect when I switch network.</title>
      <link>https://www.ptcusercommunity.com/t5/Customization/Creo-VB-API-cannot-connect-when-I-switch-network/m-p/1055201#M14758</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;
&lt;P&gt;VB API and Toolkit at large leverage existing functionality.&lt;BR /&gt;Can you confirm that switching network keeps the session stable wimply with Creo Parametric ?&lt;/P&gt;
&lt;P&gt;what's the behavior when you have, let's say a model in session, then change network ?&lt;/P&gt;</description>
      <pubDate>Tue, 17 Feb 2026 16:09:54 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Customization/Creo-VB-API-cannot-connect-when-I-switch-network/m-p/1055201#M14758</guid>
      <dc:creator>remy</dc:creator>
      <dc:date>2026-02-17T16:09:54Z</dc:date>
    </item>
    <item>
      <title>Re: Creo VB API cannot connect when I switch network.</title>
      <link>https://www.ptcusercommunity.com/t5/Customization/Creo-VB-API-cannot-connect-when-I-switch-network/m-p/1055255#M14760</link>
      <description>&lt;P&gt;When I change networks, everything works fine in Creo. I can check in and out. The license is OK. Downloading .prt and .asm works. It's just the VB API that has crashed.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Feb 2026 08:25:58 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Customization/Creo-VB-API-cannot-connect-when-I-switch-network/m-p/1055255#M14760</guid>
      <dc:creator>LBilén</dc:creator>
      <dc:date>2026-02-18T08:25:58Z</dc:date>
    </item>
    <item>
      <title>Re: Creo VB API cannot connect when I switch network.</title>
      <link>https://www.ptcusercommunity.com/t5/Customization/Creo-VB-API-cannot-connect-when-I-switch-network/m-p/1055263#M14761</link>
      <description>&lt;P&gt;Thank you for your confirmation.&lt;BR /&gt;After searching the knowledge base, I have found this article :&amp;nbsp;&lt;A href="https://www.ptc.com/en/support/article/CS287881" target="_blank"&gt;https://www.ptc.com/en/support/article/CS287881&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;It says that&amp;nbsp;&lt;EM&gt;&lt;SPAN&gt;The IP of the network driver is part of the session signature when the asynchronous application is started.&amp;nbsp;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;The article is about the Java Object Toolkit flavor but the cause remains.&lt;/P&gt;
&lt;DIV&gt;Consequently the solution consists in :&lt;/DIV&gt;
&lt;OL&gt;
&lt;LI&gt;detecting the change of ip ie the disconnection (which your code already does)&lt;/LI&gt;
&lt;LI&gt;reconnect&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Feb 2026 10:02:26 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Customization/Creo-VB-API-cannot-connect-when-I-switch-network/m-p/1055263#M14761</guid>
      <dc:creator>remy</dc:creator>
      <dc:date>2026-02-18T10:02:26Z</dc:date>
    </item>
    <item>
      <title>Re: Creo VB API cannot connect when I switch network.</title>
      <link>https://www.ptcusercommunity.com/t5/Customization/Creo-VB-API-cannot-connect-when-I-switch-network/m-p/1055297#M14762</link>
      <description>&lt;P&gt;Ok,&lt;/P&gt;&lt;P&gt;So it is only possible to:&lt;/P&gt;&lt;P&gt;Reconnect using the same network driver.&lt;BR /&gt;Restart Creo to get a new session signature.&lt;/P&gt;&lt;P&gt;(Copy from&amp;nbsp;&lt;A href="https://www.ptc.com/en/support/article/CS287881" target="_blank" rel="noopener nofollow"&gt;https://www.ptc.com/en/support/article/CS287881&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;These are the two ways I've also gotten it to work. No other way has worked.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had hoped that there was a solution to the problem, but it seems there is not.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Feb 2026 11:53:00 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Customization/Creo-VB-API-cannot-connect-when-I-switch-network/m-p/1055297#M14762</guid>
      <dc:creator>LBilén</dc:creator>
      <dc:date>2026-02-18T11:53:00Z</dc:date>
    </item>
    <item>
      <title>Re: Creo VB API cannot connect when I switch network.</title>
      <link>https://www.ptcusercommunity.com/t5/Customization/Creo-VB-API-cannot-connect-when-I-switch-network/m-p/1055340#M14763</link>
      <description>&lt;P&gt;I have the same issues with asyn toolkit apps, for me this is not the root cause. And I don’t understand why the IP changes, because you are connected to the local machine, and why here the IP should change. I guess the RPC socket will close, and this will fire an event and will finally disconnect the session. &lt;BR /&gt;And sometimes reconnect without Creo restart is not possible, and this is a bug in my opinion. Because this may have an impact on your session data.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Feb 2026 17:37:19 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Customization/Creo-VB-API-cannot-connect-when-I-switch-network/m-p/1055340#M14763</guid>
      <dc:creator>RPN</dc:creator>
      <dc:date>2026-02-18T17:37:19Z</dc:date>
    </item>
    <item>
      <title>Re: Creo VB API cannot connect when I switch network.</title>
      <link>https://www.ptcusercommunity.com/t5/Customization/Creo-VB-API-cannot-connect-when-I-switch-network/m-p/1056139#M14777</link>
      <description>&lt;P&gt;Your findings are fair and i understand that in our day and age of mobility this only makes sense.&lt;BR /&gt;To keep things in context, Creo is 40 years old and was initially designed for workstations.&lt;/P&gt;
&lt;P&gt;Initially CAD users weren't supposed to move around with their hardware, let alone have a wireless connection.&lt;BR /&gt;So more than a bug it is an evolution and by ways of consequence your filing a enhancement request is more than welcome.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Feb 2026 07:48:18 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Customization/Creo-VB-API-cannot-connect-when-I-switch-network/m-p/1056139#M14777</guid>
      <dc:creator>remy</dc:creator>
      <dc:date>2026-02-25T07:48:18Z</dc:date>
    </item>
  </channel>
</rss>

