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.
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.
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.
| Link | What it does | Typical owner |
|---|---|---|
| Machine control | Holds the state, program, counts and alarms | Machine builder |
| Adapter | Reads the control and sends values to the agent (often SHDR on port 7878) | OEM, dealer or integrator |
| Agent | Serves standard MTConnect XML over HTTP | OEM, dealer, integrator or your IT |
| Network | Carries HTTP from the agent to the monitoring PC | Your IT |
| Monitoring software | Requests /probe, /current and /sample | You |
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:
| Part | Example | Where to find it |
|---|---|---|
| IP address | 192.168.10.41 | Control network settings, agent PC, IT records |
| Port | 5000 | Agent configuration; 5000 is common but not universal |
| Path | empty, or a device or model name | Agent configuration or OEM documentation |
Known starting points, as documented by each source on 13 Oct 2026:
| Source | Port and path | Status |
|---|---|---|
| MTConnect reference agent quick start | Port 5000, no path | Documented by MTConnect Institute |
| Haas Next Generation Control | Port 8082, model name in the path, for example /UMC/current | Documented by Haas; software-version dependent |
| Mazak, Okuma and FANUC agents | Set when the agent is installed | Config-dependent; ask whoever installed it |
Places to look, in order:
- Documentation from earlier projects: monitoring trials, MES pilots or integrators.
- The control: network settings and MTConnect option screens often show the port.
- Your machine dealer: they may have enabled MTConnect at installation.
- An agent PC or gateway: one agent may serve several machines from one address.
- 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:
- EXECUTION: running vs stopped. Required for a useful timeline.
- AVAILABILITY: whether the agent can see the machine.
- CONDITION items: alarms and warnings.
- PART_COUNT: production counts, if the control and program report them.
- PROGRAM: the active program.
- CONTROLLER_MODE: automatic, manual or MDI.
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:
- Execution should change to ACTIVE during the cycle.
- PartCount should increase at the end of the cycle, if counting is enabled.
- Program should show the running program.
- Timestamps should be recent. If every timestamp is hours old while the machine is running, the adapter behind the agent has stopped sending.
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:
- The request returns XML rather than an error.
- Several entries appear for items that change, such as Execution.
lastSequenceincreases when you refresh during production.
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 see | What it usually means | Next step |
|---|---|---|
| XML with MTConnectDevices or MTConnectStreams (HTTP 200) | Agent is reachable | Continue with the next step |
| Page times out | Wrong IP, different network, firewall or agent PC off | Branch A in the tree below |
| Connection refused | Right host, nothing listening on that port | Branch B |
| HTTP 404 or an MTConnectError document | Agent is running; path or device name wrong | Branch C |
| HTML page from another service | Wrong port: something else answered | Try the documented port |
| XML, but values are UNAVAILABLE | Agent running, adapter or machine not connected | Branch D |
Troubleshooting tree
Start at the top and follow the first branch that matches.
Branch A: the page times out.
- Can the PC reach the IP at all? Run
ping <ip>. Some networks block ping, so a failure is a hint rather than proof. - Is the monitoring PC on the same network or a routed VLAN? Compare the first parts of both IP addresses with your IT provider.
- 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.
- Is the agent PC or machine powered on? Agents on separate PCs stop when that PC sleeps.
Branch B: connection refused.
- Is the port right? Check the agent configuration or OEM documentation. Haas NGC uses 8082, not 5000.
- Is the agent running? Restart the agent service or the agent PC.
- Is the MTConnect option enabled on the control? Some controls need an option or software update.
Branch C: 404 or an error document.
- Open
/probewith no path to list the device names the agent knows. - Copy the exact device name, including capitals, into the path.
- 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.
- Check AVAILABILITY. If it is UNAVAILABLE, the agent cannot see the machine.
- Restart the adapter and check its connection to the control.
- 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.
- 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.
- Check adapter logs for crashes or lost connections to the control.
- Check cabling and switches near the machine.
- Check machine sleep or power-saving modes.
- 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:
| Headline | Meaning | What to do |
|---|---|---|
| No MTConnect Endpoint Found | Nothing answered at that address | Work through Branches A and B |
| MTConnect Endpoint Responded | Something answered, but no supported device was found in the data | Work through Branch C, then check the agent configuration |
| MTConnect Connection Ready | Endpoint reached and machine data found | Review 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)
- MTConnect Institute and agent quick start: https://www.mtconnect.org/ and https://docs.mtconnect.org/
- Haas NGC machine data collection manual: https://www.haascnc.com/service/online-manuals/next-gen-control-electrical---service-manual/ngc---machine-data-collection.html
- Mazak public demo agent: http://mtconnect.mazakcorp.com:5719/probe
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.