content: <?xml version="1.0" encoding="UTF-8"?><edgarSubmission xmlns="http://www.sec.gov/edgar/ownership" xmlns:com="http://www.sec.gov/edgar/common">
    <headerData>
      <submissionType>144</submissionType>
      <filerInfo>
        <filer>
          <filerCredentials>
            <cik>0001188266</cik>
            <ccc>XXXXXXXX</ccc>
          </filerCredentials>
        </filer>
        <liveTestFlag>LIVE</liveTestFlag>
  
  
      </filerInfo>
    </headerData>
    <formData>
      <issuerInfo>
        <issuerCik>0001050377</issuerCik>
        <issuerName>PC CONNECTION INC</issuerName>
        <secFileNumber>000-23827</secFileNumber>
        <issuerAddress>
          <com:street1>ROUTE 101A</com:street1>
          <com:street2>730 MILFORD RD</com:street2>
          <com:city>MERRIMACK</com:city>
          <com:stateOrCountry>NH</com:stateOrCountry>
          <com:zipCode>03054</com:zipCode>
        </issuerAddress>
        <issuerContactPhone>6036832000</issuerContactPhone>
        <nameOfPersonForWhoseAccountTheSecuritiesAreToBeSold>MCGRATH TIMOTHY J</nameOfPersonForWhoseAccountTheSecuritiesAreToBeSold>
        <relationshipsToIssuer>
          <relationshipToIssuer>Officer</relationshipToIssuer>
        </relationshipsToIssuer>
      </issuerInfo>
      <securitiesInformation>
        <securitiesClassTitle>Common</securitiesClassTitle>
        <brokerOrMarketmakerDetails>
          <name>Kestra Financial</name>
          <address>
            <com:street1>5707 Southwest Pkwy</com:street1>
            <com:city>Austin </com:city>
            <com:stateOrCountry>TX</com:stateOrCountry>
            <com:zipCode>78735</com:zipCode>
          </address>
        </brokerOrMarketmakerDetails>
        <noOfUnitsSold>50000</noOfUnitsSold>
        <aggregateMarketValue>3457500.00</aggregateMarketValue>
        <noOfUnitsOutstanding>25397238</noOfUnitsOutstanding>
        <approxSaleDate>05/20/2025</approxSaleDate>
        <securitiesExchangeName>NASDAQ</securitiesExchangeName>
      </securitiesInformation>
      <securitiesToBeSold>
        <securitiesClassTitle>Common</securitiesClassTitle>
        <acquiredDate>12/17/2023</acquiredDate>
        <natureOfAcquisitionTransaction>Vesting of restricted stock unit Award</natureOfAcquisitionTransaction>
        <nameOfPersonfromWhomAcquired>Company</nameOfPersonfromWhomAcquired>
        <isGiftTransaction>N</isGiftTransaction>
        <amountOfSecuritiesAcquired>3032</amountOfSecuritiesAcquired>
        <paymentDate>12/17/2023</paymentDate>
        <natureOfPayment>Granted as part of Issuer equity compensation plan</natureOfPayment>
      </securitiesToBeSold>
      <securitiesToBeSold>
        <securitiesClassTitle>Common</securitiesClassTitle>
        <acquiredDate>11/27/2023</acquiredDate>
        <natureOfAcquisitionTransaction>Vesting of restricted stock unit Award</natureOfAcquisitionTransaction>
        <nameOfPersonfromWhomAcquired>Company</nameOfPersonfromWhomAcquired>
        <isGiftTransaction>N</isGiftTransaction>
        <amountOfSecuritiesAcquired>6065</amountOfSecuritiesAcquired>
        <paymentDate>11/27/2023</paymentDate>
        <natureOfPayment>Granted as part of Issuer equity compensation plan</natureOfPayment>
      </securitiesToBeSold>
      <securitiesToBeSold>
        <securitiesClassTitle>Common</securitiesClassTitle>
        <acquiredDate>11/21/2023</acquiredDate>
        <natureOfAcquisitionTransaction>Vesting of restricted stock unit Award</natureOfAcquisitionTransaction>
        <nameOfPersonfromWhomAcquired>Company</nameOfPersonfromWhomAcquired>
        <isGiftTransaction>N</isGiftTransaction>
        <amountOfSecuritiesAcquired>6065</amountOfSecuritiesAcquired>
        <paymentDate>11/21/2023</paymentDate>
        <natureOfPayment>Granted as part of Issuer equity compensation pland</natureOfPayment>
      </securitiesToBeSold>
      <securitiesToBeSold>
        <securitiesClassTitle>Common</securitiesClassTitle>
        <acquiredDate>09/01/2023</acquiredDate>
        <natureOfAcquisitionTransaction>Vesting of restricted stock unit Award</natureOfAcquisitionTransaction>
        <nameOfPersonfromWhomAcquired>Company</nameOfPersonfromWhomAcquired>
        <isGiftTransaction>N</isGiftTransaction>
        <amountOfSecuritiesAcquired>4245</amountOfSecuritiesAcquired>
        <paymentDate>09/01/2023</paymentDate>
        <natureOfPayment>Granted as part of Issuer equity compensation plan</natureOfPayment>
      </securitiesToBeSold>
      <securitiesToBeSold>
        <securitiesClassTitle>Common</securitiesClassTitle>
        <acquiredDate>09/01/2023</acquiredDate>
        <natureOfAcquisitionTransaction>Vesting of restricted stock unit Award</natureOfAcquisitionTransaction>
        <nameOfPersonfromWhomAcquired>Company</nameOfPersonfromWhomAcquired>
        <isGiftTransaction>N</isGiftTransaction>
        <amountOfSecuritiesAcquired>4852</amountOfSecuritiesAcquired>
        <paymentDate>09/01/2023</paymentDate>
        <natureOfPayment>Granted as part of Issuer equity compensation plan</natureOfPayment>
      </securitiesToBeSold>
      <securitiesToBeSold>
        <securitiesClassTitle>Common</securitiesClassTitle>
        <acquiredDate>10/29/2023</acquiredDate>
        <natureOfAcquisitionTransaction>Vesting of restricted stock unit Award</natureOfAcquisitionTransaction>
        <nameOfPersonfromWhomAcquired>Company</nameOfPersonfromWhomAcquired>
        <isGiftTransaction>N</isGiftTransaction>
        <amountOfSecuritiesAcquired>3032</amountOfSecuritiesAcquired>
        <paymentDate>10/29/2023</paymentDate>
        <natureOfPayment>Granted as part of Issuer equity compensation plan</natureOfPayment>
      </securitiesToBeSold>
      <securitiesToBeSold>
        <securitiesClassTitle>Common</securitiesClassTitle>
        <acquiredDate>11/27/2018</acquiredDate>
        <natureOfAcquisitionTransaction>Vesting of restricted stock unit Award</natureOfAcquisitionTransaction>
        <nameOfPersonfromWhomAcquired>Company</nameOfPersonfromWhomAcquired>
        <isGiftTransaction>N</isGiftTransaction>
        <amountOfSecuritiesAcquired>6339</amountOfSecuritiesAcquired>
        <paymentDate>11/27/2018</paymentDate>
        <natureOfPayment>Granted as part of Issuer equity compensation plan</natureOfPayment>
      </securitiesToBeSold>
      <securitiesToBeSold>
        <securitiesClassTitle>Common</securitiesClassTitle>
        <acquiredDate>08/01/2014</acquiredDate>
        <natureOfAcquisitionTransaction>Vesting of restricted stock unit Award</natureOfAcquisitionTransaction>
        <nameOfPersonfromWhomAcquired>Company</nameOfPersonfromWhomAcquired>
        <isGiftTransaction>N</isGiftTransaction>
        <amountOfSecuritiesAcquired>16370</amountOfSecuritiesAcquired>
        <paymentDate>08/01/2024</paymentDate>
        <natureOfPayment>Granted as part of Issuer equity compensation plan</natureOfPayment>
      </securitiesToBeSold>
      <nothingToReportFlagOnSecuritiesSoldInPast3Months>Y</nothingToReportFlagOnSecuritiesSoldInPast3Months>
      <remarks>Sold from TIMOTHY J. MCGRATH TRUST NO. 1</remarks>
      <noticeSignature>
        <noticeDate>05/20/2025</noticeDate>
        <signature>Carmen Zamores as a duly authorized representative of National Financial Services LLC, as attorney-in-fact for MCGRATH TIMOTHY J</signature>
      </noticeSignature>
    </formData>
  </edgarSubmission>
metadata_documents: [{"type": "144", "sequence": "1", "filename": "primary_doc.xml", "secsgml_size_bytes": 7113}]
text: 144
  0001188266
  XXXXXXXX
  LIVE
  0001050377
  PC CONNECTION INC
  000-23827
  ROUTE 101A
  730 MILFORD RD
  MERRIMACK
  NH
  03054
  6036832000
  MCGRATH TIMOTHY J
  Officer
  Common
  Kestra Financial
  5707 Southwest Pkwy
  Austin
  TX
  78735
  50000
  3457500.00
  25397238
  05/20/2025
  NASDAQ
  Common
  12/17/2023
  Vesting of restricted stock unit Award
  Company
  N
  3032
  12/17/2023
  Granted as part of Issuer equity compensation plan
  Common
  11/27/2023
  Vesting of restricted stock unit Award
  Company
  N
  6065
  11/27/2023
  Granted as part of Issuer equity compensation plan
  Common
  11/21/2023
  Vesting of restricted stock unit Award
  Company
  N
  6065
  11/21/2023
  Granted as part of Issuer equity compensation pland
  Common
  09/01/2023
  Vesting of restricted stock unit Award
  Company
  N
  4245
  09/01/2023
  Granted as part of Issuer equity compensation plan
  Common
  09/01/2023
  Vesting of restricted stock unit Award
  Company
  N
  4852
  09/01/2023
  Granted as part of Issuer equity compensation plan
  Common
  10/29/2023
  Vesting of restricted stock unit Award
  Company
  N
  3032
  10/29/2023
  Granted as part of Issuer equity compensation plan
  Common
  11/27/2018
  Vesting of restricted stock unit Award
  Company
  N
  6339
  11/27/2018
  Granted as part of Issuer equity compensation plan
  Common
  08/01/2014
  Vesting of restricted stock unit Award
  Company
  N
  16370
  08/01/2024
  Granted as part of Issuer equity compensation plan
  Y
  Sold from TIMOTHY J. MCGRATH TRUST NO. 1
  05/20/2025
  Carmen Zamores as a duly authorized representative of National Financial Services LLC, as attorney-in-fact for MCGRATH TIMOTHY J