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>1832400.00</aggregateMarketValue>
        <noOfUnitsOutstanding>26288356</noOfUnitsOutstanding>
        <approxSaleDate>11/20/2023</approxSaleDate>
        <securitiesExchangeName>NASDAQ</securitiesExchangeName>
      </securitiesInformation>
      <securitiesToBeSold>
        <securitiesClassTitle>Common</securitiesClassTitle>
        <acquiredDate>11/27/2020</acquiredDate>
        <natureOfAcquisitionTransaction>Stock Options Exercise</natureOfAcquisitionTransaction>
        <nameOfPersonfromWhomAcquired>Company</nameOfPersonfromWhomAcquired>
        <isGiftTransaction>N</isGiftTransaction>
        <amountOfSecuritiesAcquired>2935</amountOfSecuritiesAcquired>
        <paymentDate>11/27/2020</paymentDate>
        <natureOfPayment>N/A</natureOfPayment>
      </securitiesToBeSold>
      <securitiesToBeSold>
        <securitiesClassTitle>Common</securitiesClassTitle>
        <acquiredDate>07/01/2021</acquiredDate>
        <natureOfAcquisitionTransaction>Stock Options Exercise</natureOfAcquisitionTransaction>
        <nameOfPersonfromWhomAcquired>Company</nameOfPersonfromWhomAcquired>
        <isGiftTransaction>N</isGiftTransaction>
        <amountOfSecuritiesAcquired>4548</amountOfSecuritiesAcquired>
        <paymentDate>07/01/2021</paymentDate>
        <natureOfPayment>N/A</natureOfPayment>
      </securitiesToBeSold>
      <securitiesToBeSold>
        <securitiesClassTitle>Common</securitiesClassTitle>
        <acquiredDate>10/29/2021</acquiredDate>
        <natureOfAcquisitionTransaction>Stock Options Exercise</natureOfAcquisitionTransaction>
        <nameOfPersonfromWhomAcquired>Company</nameOfPersonfromWhomAcquired>
        <isGiftTransaction>N</isGiftTransaction>
        <amountOfSecuritiesAcquired>3032</amountOfSecuritiesAcquired>
        <paymentDate>10/29/2021</paymentDate>
        <natureOfPayment>N/A</natureOfPayment>
      </securitiesToBeSold>
      <securitiesToBeSold>
        <securitiesClassTitle>Common</securitiesClassTitle>
        <acquiredDate>10/29/2020</acquiredDate>
        <natureOfAcquisitionTransaction>Stock Options Exercise</natureOfAcquisitionTransaction>
        <nameOfPersonfromWhomAcquired>Company</nameOfPersonfromWhomAcquired>
        <isGiftTransaction>N</isGiftTransaction>
        <amountOfSecuritiesAcquired>3032</amountOfSecuritiesAcquired>
        <paymentDate>10/29/2020</paymentDate>
        <natureOfPayment>N/A</natureOfPayment>
      </securitiesToBeSold>
      <securitiesToBeSold>
        <securitiesClassTitle>Common</securitiesClassTitle>
        <acquiredDate>11/27/2021</acquiredDate>
        <natureOfAcquisitionTransaction>Stock Options Exercise</natureOfAcquisitionTransaction>
        <nameOfPersonfromWhomAcquired>Company</nameOfPersonfromWhomAcquired>
        <isGiftTransaction>N</isGiftTransaction>
        <amountOfSecuritiesAcquired>12130</amountOfSecuritiesAcquired>
        <paymentDate>11/27/2021</paymentDate>
        <natureOfPayment>N/A</natureOfPayment>
      </securitiesToBeSold>
      <securitiesToBeSold>
        <securitiesClassTitle>Common</securitiesClassTitle>
        <acquiredDate>04/01/2019</acquiredDate>
        <natureOfAcquisitionTransaction>Stock Options Exercise</natureOfAcquisitionTransaction>
        <nameOfPersonfromWhomAcquired>Company</nameOfPersonfromWhomAcquired>
        <isGiftTransaction>N</isGiftTransaction>
        <amountOfSecuritiesAcquired>3032</amountOfSecuritiesAcquired>
        <paymentDate>04/01/2019</paymentDate>
        <natureOfPayment>N/A</natureOfPayment>
      </securitiesToBeSold>
      <securitiesToBeSold>
        <securitiesClassTitle>Common</securitiesClassTitle>
        <acquiredDate>09/01/2019</acquiredDate>
        <natureOfAcquisitionTransaction>Stock Options Exercise</natureOfAcquisitionTransaction>
        <nameOfPersonfromWhomAcquired>Company</nameOfPersonfromWhomAcquired>
        <isGiftTransaction>N</isGiftTransaction>
        <amountOfSecuritiesAcquired>1291</amountOfSecuritiesAcquired>
        <paymentDate>09/01/2019</paymentDate>
        <natureOfPayment>N/A</natureOfPayment>
      </securitiesToBeSold>
      <nothingToReportFlagOnSecuritiesSoldInPast3Months>N</nothingToReportFlagOnSecuritiesSoldInPast3Months>
      <securitiesSoldInPast3Months>
        <sellerDetails>
          <name>Timothy McGrath TTEE Timothy Mcgrath Trust No 1</name>
          <address>
            <com:street1>730 Milford Road</com:street1>
            <com:city>merrimack</com:city>
            <com:stateOrCountry>NH</com:stateOrCountry>
            <com:zipCode>03054</com:zipCode>
          </address>
        </sellerDetails>
        <securitiesClassTitle>PC connection INC</securitiesClassTitle>
        <saleDate>08/23/2023</saleDate>
        <amountOfSecuritiesSold>15155</amountOfSecuritiesSold>
        <grossProceeds>807741.59</grossProceeds>
      </securitiesSoldInPast3Months>
      <securitiesSoldInPast3Months>
        <sellerDetails>
          <name>Timothy McGrath TTEE Timothy Mcgrath Trust No 1</name>
          <address>
            <com:street1>730 Milford Road,</com:street1>
            <com:city>Merrimack</com:city>
            <com:stateOrCountry>NH</com:stateOrCountry>
            <com:zipCode>03054</com:zipCode>
          </address>
        </sellerDetails>
        <securitiesClassTitle>PC connection INC</securitiesClassTitle>
        <saleDate>08/22/2023</saleDate>
        <amountOfSecuritiesSold>20310</amountOfSecuritiesSold>
        <grossProceeds>1071805.26</grossProceeds>
      </securitiesSoldInPast3Months>
      <remarks>shares are being sold from TIMOTHY J MCGRATH TRUST NO 1 u/a 2/28/03</remarks>
      <noticeSignature>
        <noticeDate>11/20/2023</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": 7367}]
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
  1832400.00
  26288356
  11/20/2023
  NASDAQ
  Common
  11/27/2020
  Stock Options Exercise
  Company
  N
  2935
  11/27/2020
  N/A
  Common
  07/01/2021
  Stock Options Exercise
  Company
  N
  4548
  07/01/2021
  N/A
  Common
  10/29/2021
  Stock Options Exercise
  Company
  N
  3032
  10/29/2021
  N/A
  Common
  10/29/2020
  Stock Options Exercise
  Company
  N
  3032
  10/29/2020
  N/A
  Common
  11/27/2021
  Stock Options Exercise
  Company
  N
  12130
  11/27/2021
  N/A
  Common
  04/01/2019
  Stock Options Exercise
  Company
  N
  3032
  04/01/2019
  N/A
  Common
  09/01/2019
  Stock Options Exercise
  Company
  N
  1291
  09/01/2019
  N/A
  N
  Timothy McGrath TTEE Timothy Mcgrath Trust No 1
  730 Milford Road
  merrimack
  NH
  03054
  PC connection INC
  08/23/2023
  15155
  807741.59
  Timothy McGrath TTEE Timothy Mcgrath Trust No 1
  730 Milford Road,
  Merrimack
  NH
  03054
  PC connection INC
  08/22/2023
  20310
  1071805.26
  shares are being sold from TIMOTHY J MCGRATH TRUST NO 1 u/a 2/28/03
  11/20/2023
  /s/ Audrey Skillern as a duly authorized representative of National Financial Services LLC, as attorney-in-fact for TIMOTHY J MCGRATH