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>30000</noOfUnitsSold>
        <aggregateMarketValue>2181600.00</aggregateMarketValue>
        <noOfUnitsOutstanding>26366</noOfUnitsOutstanding>
        <approxSaleDate>08/05/2024</approxSaleDate>
        <securitiesExchangeName>nasdaq</securitiesExchangeName>
      </securitiesInformation>
      <securitiesToBeSold>
        <securitiesClassTitle>Common</securitiesClassTitle>
        <acquiredDate>11/27/2021</acquiredDate>
        <natureOfAcquisitionTransaction>Vesting of Restricted Stock Unit Award</natureOfAcquisitionTransaction>
        <nameOfPersonfromWhomAcquired>Company </nameOfPersonfromWhomAcquired>
        <isGiftTransaction>N</isGiftTransaction>
        <amountOfSecuritiesAcquired>2983</amountOfSecuritiesAcquired>
        <paymentDate>11/27/2021</paymentDate>
        <natureOfPayment>Granted as part of Issuer Equity Compensation plan</natureOfPayment>
      </securitiesToBeSold>
      <securitiesToBeSold>
        <securitiesClassTitle>Common</securitiesClassTitle>
        <acquiredDate>04/01/2023</acquiredDate>
        <natureOfAcquisitionTransaction>Vesting of Restricted Stock Unit Award	</natureOfAcquisitionTransaction>
        <nameOfPersonfromWhomAcquired>Company</nameOfPersonfromWhomAcquired>
        <isGiftTransaction>N</isGiftTransaction>
        <amountOfSecuritiesAcquired>6063</amountOfSecuritiesAcquired>
        <paymentDate>04/01/2023</paymentDate>
        <natureOfPayment>Granted as part of Issuer Equity Compensation plan</natureOfPayment>
      </securitiesToBeSold>
      <securitiesToBeSold>
        <securitiesClassTitle>Common</securitiesClassTitle>
        <acquiredDate>04/01/2019</acquiredDate>
        <natureOfAcquisitionTransaction>Vesting of Restricted Stock Unit Award	</natureOfAcquisitionTransaction>
        <nameOfPersonfromWhomAcquired>Company</nameOfPersonfromWhomAcquired>
        <isGiftTransaction>N</isGiftTransaction>
        <amountOfSecuritiesAcquired>3032</amountOfSecuritiesAcquired>
        <paymentDate>04/01/2019</paymentDate>
        <natureOfPayment>Granted as part of Issuer Equity Compensation plan</natureOfPayment>
      </securitiesToBeSold>
      <securitiesToBeSold>
        <securitiesClassTitle>Common</securitiesClassTitle>
        <acquiredDate>09/01/2019</acquiredDate>
        <natureOfAcquisitionTransaction>Vesting of Restricted Stock Unit Award	</natureOfAcquisitionTransaction>
        <nameOfPersonfromWhomAcquired>Company</nameOfPersonfromWhomAcquired>
        <isGiftTransaction>N</isGiftTransaction>
        <amountOfSecuritiesAcquired>9097</amountOfSecuritiesAcquired>
        <paymentDate>09/01/2019</paymentDate>
        <natureOfPayment>Granted as part of Issuer Equity Compensation plan</natureOfPayment>
      </securitiesToBeSold>
      <securitiesToBeSold>
        <securitiesClassTitle>Common</securitiesClassTitle>
        <acquiredDate>08/02/2019</acquiredDate>
        <natureOfAcquisitionTransaction>Vesting of Restricted Stock Unit Award	</natureOfAcquisitionTransaction>
        <nameOfPersonfromWhomAcquired>Company</nameOfPersonfromWhomAcquired>
        <isGiftTransaction>N</isGiftTransaction>
        <amountOfSecuritiesAcquired>6065</amountOfSecuritiesAcquired>
        <paymentDate>08/02/2019</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>2758</amountOfSecuritiesAcquired>
        <paymentDate>11/27/2018</paymentDate>
        <natureOfPayment>Granted as part of Issuer Equity Compensation plan</natureOfPayment>
      </securitiesToBeSold>
      <nothingToReportFlagOnSecuritiesSoldInPast3Months>Y</nothingToReportFlagOnSecuritiesSoldInPast3Months>
      <remarks>shares are being sold from TIMOTHY J MCGRATH TRUST NO 1 U/A 2/28/03 </remarks>
      <noticeSignature>
        <noticeDate>08/05/2024</noticeDate>
        <signature>/s/ Audrey Skillern as a duly authorized representative of National Financial Services LLC, as attorney-in-fact for Timothy J Mcgrath  </signature>
      </noticeSignature>
    </formData>
  </edgarSubmission>
metadata_documents: [{"type": "144", "sequence": "1", "filename": "primary_doc.xml", "secsgml_size_bytes": 5969}]
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
  30000
  2181600.00
  26366
  08/05/2024
  nasdaq
  Common
  11/27/2021
  Vesting of Restricted Stock Unit Award
  Company
  N
  2983
  11/27/2021
  Granted as part of Issuer Equity Compensation plan
  Common
  04/01/2023
  Vesting of Restricted Stock Unit Award
  Company
  N
  6063
  04/01/2023
  Granted as part of Issuer Equity Compensation plan
  Common
  04/01/2019
  Vesting of Restricted Stock Unit Award
  Company
  N
  3032
  04/01/2019
  Granted as part of Issuer Equity Compensation plan
  Common
  09/01/2019
  Vesting of Restricted Stock Unit Award
  Company
  N
  9097
  09/01/2019
  Granted as part of Issuer Equity Compensation plan
  Common
  08/02/2019
  Vesting of Restricted Stock Unit Award
  Company
  N
  6065
  08/02/2019
  Granted as part of Issuer Equity Compensation plan
  Common
  11/27/2018
  Vesting of Restricted Stock Unit Award
  Company
  N
  2758
  11/27/2018
  Granted as part of Issuer Equity Compensation plan
  Y
  shares are being sold from TIMOTHY J MCGRATH TRUST NO 1 U/A 2/28/03
  08/05/2024
  /s/ Audrey Skillern as a duly authorized representative of National Financial Services LLC, as attorney-in-fact for Timothy J Mcgrath