F
factoryEdge AI MACHINE MONITOR

How to Find, Test, and Fix an MTConnect Connection

A step-by-step checklist to locate an MTConnect endpoint, prove /probe, /current and /sample answer, confirm the data is usable, and work through a troubleshooting tree when they do not.

By Ryan Lenhart · Updated

Most MTConnect problems are not software problems. They are an address typed wrong, a firewall in the way, or an adapter that stopped talking to the machine. A browser and ten minutes can usually tell you which.

Work through these steps in order on the same PC that will run your monitoring software. Every request below is a read-only HTTP GET; none of them change anything on the machine.

Key takeaway

Test from the monitoring PC, not your laptop. "It works from my desk" means nothing if the shop-floor PC is on a different network.

How the pieces fit together

An MTConnect connection has a chain of parts. A break anywhere in the chain looks like "no data" from the software's side.

LinkWhat it doesTypical owner
Machine controlHolds the state, program, counts and alarmsMachine builder
AdapterReads the control and sends values to the agent (often SHDR on port 7878)OEM, dealer or integrator
AgentServes standard MTConnect XML over HTTPOEM, dealer, integrator or your IT
NetworkCarries HTTP from the agent to the monitoring PCYour IT
Monitoring softwareRequests /probe, /current and /sampleYou

The MTConnect standard defines the agent's HTTP interface. Seeing "MTConnect" on a spec sheet does not prove an agent is running on your machine today. The tests below prove it.

Step 1: Find the endpoint

An MTConnect endpoint has three parts:

PartExampleWhere to find it
IP address192.168.10.41Control network settings, agent PC, IT records
Port5000Agent configuration; 5000 is common but not universal
Pathempty, or a device or model nameAgent configuration or OEM documentation

Known starting points, as documented by each source on 13 Oct 2026:

SourcePort and pathStatus
MTConnect reference agent quick startPort 5000, no pathDocumented by MTConnect Institute
Haas Next Generation ControlPort 8082, model name in the path, for example /UMC/currentDocumented by Haas; software-version dependent
Mazak, Okuma and FANUC agentsSet when the agent is installedConfig-dependent; ask whoever installed it

Places to look, in order:

  1. Documentation from earlier projects: monitoring trials, MES pilots or integrators.
  2. The control: network settings and MTConnect option screens often show the port.
  3. Your machine dealer: they may have enabled MTConnect at installation.
  4. An agent PC or gateway: one agent may serve several machines from one address.
  5. A network scan: FEAI's read-only Scan LAN checks ports 5000, 5001, 80, 8080, 5609 and 7878 on your subnet and asks each answer for a probe document. It will not find agents on other subnets, on other ports (such as Haas 8082), or behind firewalls. Manual entry always works.

Step 2: Test /probe

Open a browser on the monitoring PC and go to:

http://<ip>:<port>/probe

If the agent uses a path, add it: http://<ip>:<port>/<path>/probe.

A healthy probe response is an XML document whose root element is MTConnectDevices. It lists one or more Device elements, each with components and DataItem entries. Here is a trimmed, illustrative example. It is not output from a real machine:


<!-- ILLUSTRATIVE EXAMPLE: trimmed and simplified, not from a real machine -->

<MTConnectDevices xmlns="urn:mtconnect.org:MTConnectDevices:2.0">

  <Header creationTime="2026-10-13T15:00:00Z" sender="agent-pc" instanceId="1700000000" version="2.3.0.7" bufferSize="4096"/>

  <Devices>

    <Device id="d1" name="VF2" uuid="example-vf2">

      <DataItems>

        <DataItem category="EVENT" id="avail" type="AVAILABILITY"/>

      </DataItems>

      <Components>

        <Controller id="cont">

          <DataItems>

            <DataItem category="CONDITION" id="system" type="SYSTEM"/>

          </DataItems>

          <Components>

            <Path id="path1">

              <DataItems>

                <DataItem category="EVENT" id="exec" type="EXECUTION"/>

                <DataItem category="EVENT" id="mode" type="CONTROLLER_MODE"/>

                <DataItem category="EVENT" id="pgm" type="PROGRAM"/>

                <DataItem category="EVENT" id="pc" type="PART_COUNT"/>

              </DataItems>

            </Path>

          </Components>

        </Controller>

      </Components>

    </Device>

  </Devices>

</MTConnectDevices>

Look for these data item types. Monitoring needs the first two; the others make dashboards richer:

If one agent serves several machines, write down each device's exact name. You will select it when connecting, and a misspelled device name is the most common cause of a 404.

Step 3: Test /current

Next open http://<ip>:<port>/current. The root element is MTConnectStreams, and each data item appears with its latest value and timestamp. Illustrative example:


<!-- ILLUSTRATIVE EXAMPLE: trimmed and simplified, not from a real machine -->

<MTConnectStreams xmlns="urn:mtconnect.org:MTConnectStreams:2.0">

  <Header creationTime="2026-10-13T15:00:05Z" instanceId="1700000000" bufferSize="4096" firstSequence="1" lastSequence="5120" nextSequence="5121"/>

  <Streams>

    <DeviceStream name="VF2" uuid="example-vf2">

      <ComponentStream component="Path" componentId="path1">

        <Events>

          <Execution dataItemId="exec" timestamp="2026-10-13T14:59:58Z" sequence="5118">ACTIVE</Execution>

          <ControllerMode dataItemId="mode" timestamp="2026-10-13T14:10:02Z" sequence="4870">AUTOMATIC</ControllerMode>

          <Program dataItemId="pgm" timestamp="2026-10-13T14:10:05Z" sequence="4871">O1234</Program>

          <PartCount dataItemId="pc" timestamp="2026-10-13T14:59:40Z" sequence="5117">37</PartCount>

        </Events>

      </ComponentStream>

    </DeviceStream>

  </Streams>

</MTConnectStreams>

Check that important items have real values, not UNAVAILABLE. Then run a cycle (or watch one) and refresh:

Step 4: Test /sample

Finally open http://<ip>:<port>/sample?count=100. This returns up to 100 recent changes from the agent's buffer, in sequence order, using the same MTConnectStreams format as /current. The header's firstSequence, lastSequence and nextSequence values tell a client where the buffer starts and where to continue next time.

What to check:

If /current works but /sample returns an error, the request syntax is usually wrong; remove the extra parameters and try /sample alone.

Reading the HTTP result

What you seeWhat it usually meansNext step
XML with MTConnectDevices or MTConnectStreams (HTTP 200)Agent is reachableContinue with the next step
Page times outWrong IP, different network, firewall or agent PC offBranch A in the tree below
Connection refusedRight host, nothing listening on that portBranch B
HTTP 404 or an MTConnectError documentAgent is running; path or device name wrongBranch C
HTML page from another serviceWrong port: something else answeredTry the documented port
XML, but values are UNAVAILABLEAgent running, adapter or machine not connectedBranch D

Troubleshooting tree

Start at the top and follow the first branch that matches.

Branch A: the page times out.

  1. Can the PC reach the IP at all? Run ping <ip>. Some networks block ping, so a failure is a hint rather than proof.
  2. Is the monitoring PC on the same network or a routed VLAN? Compare the first parts of both IP addresses with your IT provider.
  3. Is a firewall in the way? Ask IT whether HTTP to that port is allowed between the two networks, and check Windows Firewall on any agent PC.
  4. Is the agent PC or machine powered on? Agents on separate PCs stop when that PC sleeps.

Branch B: connection refused.

  1. Is the port right? Check the agent configuration or OEM documentation. Haas NGC uses 8082, not 5000.
  2. Is the agent running? Restart the agent service or the agent PC.
  3. Is the MTConnect option enabled on the control? Some controls need an option or software update.

Branch C: 404 or an error document.

  1. Open /probe with no path to list the device names the agent knows.
  2. Copy the exact device name, including capitals, into the path.
  3. If the name contains a "/" character, check the OEM's notes. Haas documents a minimum software version for that case.

Branch D: XML arrives but values are UNAVAILABLE or never change.

  1. Check AVAILABILITY. If it is UNAVAILABLE, the agent cannot see the machine.
  2. Restart the adapter and check its connection to the control.
  3. If Execution is missing from /probe, the agent's device configuration does not define it. Ask whoever configured the agent and adapter to add it.
  4. If PartCount never changes, part counting may not be enabled in the control or the program does not trigger it.

Branch E: data stops after a while or history has gaps.

  1. Check adapter logs for crashes or lost connections to the control.
  2. Check cabling and switches near the machine.
  3. Check machine sleep or power-saving modes.
  4. Long network outages can exceed the agent's buffer, so some changes are lost.

Practice on a public demo agent

If you have never seen a working agent, Mazak publishes a demonstration agent. On 13 Oct 2026, http://mtconnect.mazakcorp.com:5719/probe and /current returned XML, and an unknown device path returned HTTP 404. Use it to see what healthy responses look like, then compare with your own machine. It is a public demo, not your machine.

Step 5: Connect your monitoring software

In FEAI Machine Monitor, open Connect, enter the IP, port and path (or pick a Scan LAN result) and run the check. The diagnostics use three headlines:

HeadlineMeaningWhat to do
No MTConnect Endpoint FoundNothing answered at that addressWork through Branches A and B
MTConnect Endpoint RespondedSomething answered, but no supported device was found in the dataWork through Branch C, then check the agent configuration
MTConnect Connection ReadyEndpoint reached and machine data foundReview the device details and add the machine

The capability notes list which items the endpoint reports, such as execution, condition, part count, program, feed, spindle and overrides. If data is more than five minutes old, the diagnostics flag it as stale even though the agent answered.

When to call for help

If the agent and adapter were installed by a dealer or integrator, they are the fastest fix for adapter mapping and control-side settings. For network routing and firewall rules, involve your IT provider. FEAI Machine Monitor reads data. It does not configure controls, agents or adapters. Brand notes: Haas, Mazak, Okuma, FANUC.

Sources (reviewed 13 Oct 2026)

Compatibility note. FEAI Machine Monitor reads supported CNC machine data through an accessible MTConnect Agent or compatible endpoint. Some machines require an adapter or machine-side configuration before monitoring is possible. Scan LAN does not find every machine.

Endpoint answering? Start Free — Monitor 2 Machines and watch the timeline fill in. Still stuck? Read the Connect a CNC Machine checklist.

FAQ

How do I find my MTConnect endpoint?

Check previous project documentation, the control's network or option settings, your dealer, or an agent PC on the network. Then test candidate addresses with http://ip:port/probe in a browser. Port 5000 is common, but Haas Next Generation Control uses 8082 with the model name in the path.

How do I test an MTConnect connection?

From the PC that will run monitoring, open /probe, /current and /sample on the endpoint in a browser. Each should return XML. Then run a cycle and refresh /current to see values change.

What is the difference between probe, current and sample?

/probe describes the devices and data items the agent publishes. /current returns the latest value of each item. /sample returns a series of recent changes from the agent's buffer.

Why does my MTConnect agent show UNAVAILABLE?

Usually the agent is running but its adapter is not connected to the machine, or the machine is powered off. Check the adapter service and its connection to the control.

Why do I get a 404 from an MTConnect agent?

The agent is running but the path is wrong, usually a misspelled device name. Open /probe without a device name to see the exact names the agent uses.

Can I test MTConnect without monitoring software?

Yes. A web browser is enough for basic tests, and curl works from a command prompt.

Does FEAI help diagnose connections?

Yes. FEAI Machine Monitor includes connection diagnostics and a read-only Scan LAN tool. It reads data only and does not change controller, agent or adapter settings.