Explainer
Why an Ignition local SQL Server connection depends on the network
Short answer
Co-locating the Ignition Gateway and SQL Server Express on one machine does not remove network dependency: only a JDBC destination of a loopback address plus an explicit TCP port stays inside the machine. A hostname, an interface address, or a named instance without a port depends on name resolution or SQL Server Browser discovery, so a new network, a changed address or a different firewall profile breaks the connection.

On this page
- Where the Gateway's database request really goes
- What each destination depends on
- A running instance is not a reachable listener
- Named instances add a discovery step
- Why the new network breaks a local connection
- Worked example: counting network operations for a laptop moved to a job-site network
- The configuration that survives a network change
- Questions asked
No. A Gateway and SQL Server Express on the same laptop are not network-independent by default. The database request is opened by the Gateway's JDBC connection, and where it goes depends entirely on the host, instance and port stored in that connection. Only a loopback address with an explicit TCP port stays inside the machine's own TCP/IP stack. A laptop hostname, an interface address, or a named instance left to discovery goes through name resolution or the SQL Server Browser service, so a new network, a changed interface address or a new firewall profile can break a connection that never left the laptop.
Where the Gateway's database request really goes #
The request never originates in your Perspective session. The browser talks to the Gateway; the Gateway's JDBC connection opens the socket to SQL Server. The destination is whatever host, instance and port that connection stores, and nothing about running both on one laptop pins that destination to the machine itself.
When the connection's host is a loopback address, the packets travel the machine's internal loopback path, and no interface, router, DNS server or firewall profile sits in the conversation. When the host is anything else, at least one network service is in the path, and co-location only means the far end of the conversation happens to be nearby.
What each destination depends on #
Four destination forms appear in a Gateway database connection, and they are not equivalent:
- Loopback address with an explicit port. The Gateway hands the connection to the local TCP/IP stack. The only requirements are that the engine listens on that port and accepts loopback. This is the only form with no network dependency.
- The laptop's hostname. The driver must resolve the name first, on the current network, then connect to whatever address comes back. Resolution is a network service even when the answer is your own machine.
- An interface address, meaning the laptop's address on a site network. No resolution is needed, but the address belongs to that interface. Move networks, the address changes, and the stored destination points at an address the laptop no longer owns.
- A named instance without a port. Addressing plus instance-to-port discovery through the SQL Server Browser service before any engine traffic flows.
A site router is not in a normal loopback path. When a local connection dies on a new network, one of the last three destination forms is in play.
A running instance is not a reachable listener #
Two separate checks exist here: the database-engine service is running, and a TCP listener is accepting connections on the address and port the Gateway will use. The engine can be running with TCP/IP disabled at the protocol level, with the listener bound to a different address, or with a different instance entirely — and each case passes the first check while failing the second.
Use SQL Server Configuration Manager to see which protocols the instance has enabled and which addresses and ports its TCP/IP configuration carries. One documented detail worth knowing: per-address port settings only apply when Listen All is set to No on the protocol's Protocols tab; with Listen All left at Yes, the instance listens according to the global setting instead.
Confirm against the engine's startup log, which records the addresses and ports actually being listened on. A configuration value is an intention; the startup log is the fact. If the instance runs on a dynamic port, trust the log, not a remembered number. Compare address families too: a hostname can resolve to IPv4 or IPv6, and a listener reachable through one family proves nothing about the other.
Named instances add a discovery step #
A named instance is not a port. When the JDBC connection names an instance without an explicit engine port, the driver's network library sends a UDP message to port 1434, where the SQL Server Browser service answers which TCP port that instance listens on, and only then does the driver open the TCP connection to the engine. That is two network operations with two separate failure points. A stopped Browser service, filtered discovery traffic, or a misspelled instance name each fail the connection while the engine itself is healthy.
Opening the discovery path alone does not open the engine: the subsequent TCP connection still needs its own listener and its own firewall allowance. If your symptom is a timeout on a named instance, that failure path is worked through in why Ignition cannot connect to a SQL Server Express named instance. If the target is LocalDB rather than a full instance, the fault is a different one, covered in why an Ignition Gateway cannot connect to SQL Server LocalDB.
Why the new network breaks a local connection #
Three things change when a laptop joins a site network, and each one attacks a different destination form. The interface address can change, which breaks a connection that stores it. DNS resolution changes, which breaks a hostname destination that resolved on the development network. And Windows assigns the network to a firewall profile, so the SQL Server port and program rules that applied under the old profile may not apply under the new one — firewall rules are scoped per profile, and the engine's TCP path is exposed to that scope whenever the destination is not loopback.
The dependency is not unique to JDBC: resolving OPC UA endpoint URL hostname errors on an S7-1500 is the identical failure in a different protocol, where a hostname in the endpoint URL stops resolving after a network change. If the failure arrived together with a platform upgrade, separating upgrade damage from network damage is its own procedure, covered in fixing Ignition SQL Server connection faults after an upgrade.
Worked example: counting network operations for a laptop moved to a job-site network #
Take the destination exactly as it is often left after development: the laptop's hostname plus a named instance, with no port in the connection.
Inputs, with their sources:
- The destination form: hostname plus named instance, no explicit port — the configuration found on the moved laptop.
- Instance discovery: the client network library queries the Browser service with a UDP message to port 1434, per Microsoft's SQL Server Browser documentation.
- The fixed engine port once assigned: 1433, the default the Ignition JDBC settings documentation lists.
The rule: count one network operation for each step between the Gateway and the engine — a name lookup, a discovery exchange, a TCP connect. Every operation is a separate failure point that a network change can reach.
The arithmetic:
- Hostname plus named instance: 1 name lookup + 1 UDP discovery exchange on port 1434 + 1 TCP connect = 3 network operations.
- Loopback address plus fixed port: 0 lookups + 0 discovery + 1 TCP connect = 1 network operation.
- Removed by the change: 3 − 1 = 2 operations, and both removed operations are exactly the ones a new network alters: resolution and profile-scoped filtering.
Result: the loopback-plus-fixed-port destination carries one third of the network operations, and the one it keeps never leaves the machine.
Decision: a local connection that must survive a network change gets a count of 1. At a count of 2 or 3, fix the destination first — no driver reinstall changes the count.
The configuration that survives a network change #
- Give the instance a fixed TCP port in SQL Server Configuration Manager (1433 if no other instance on the machine holds it), restart the database-engine service, and confirm the port in the startup log.
- In the Gateway's database connection, set the host to the loopback address and the port to that fixed number, and drop the instance name from the destination so the driver connects directly instead of discovering.
- Test TCP reachability to exactly that address and port, then let the Gateway connect and read any remaining exception — a transport pass is not a login pass.
- Leave the firewall on. A rule scoped to the engine's port is the fix; disabling the firewall to make a local connection work is not a configuration you leave on a machine that travels between sites.
With the destination at loopback plus a fixed port, the connection has no name to resolve, no interface address to lose, and no profile rule to pass through — which is the only configuration that makes local mean local.
Questions asked
Do I still need the SQL Server Browser service after switching to a fixed port?
No, not for that connection. The Browser service exists to answer instance-name queries, and a connection that names a loopback address and a port connects straight to the engine without ever querying it. Leave the service running only if other clients on the machine or the site network still rely on discovery; otherwise it can stay stopped without affecting the Gateway.
Can I use the IPv6 loopback address instead of 127.0.0.1?
Yes, provided the engine listens on IPv6. The loopback path exists in both address families, so the IPv6 form behaves the same way, but the instance's TCP/IP configuration must have the matching address enabled with the fixed port set on it. Check the engine's startup log for the addresses actually being listened on before pointing the connection at the IPv6 form.
Does restoring an older Gateway backup undo the upgrade's effect on the connection?
Not reliably. A backup restore brings back the connection configurations you saved, but those point at the same host, instance and port as before, so a destination that depends on the network fails the same way after the restore. Treat the restored configuration as evidence of what the destination was, then test that destination on the current network instead of repeating the restore.
Does Windows Firewall apply to loopback traffic between the Gateway and SQL Server?
The port and program rules in a firewall profile govern traffic that crosses a network interface. The loopback path between two processes on one machine does not pass through those rules, which is why a loopback destination with a fixed port keeps working when the active profile changes on a new network. Hostname and interface-address destinations do cross the rules and are exposed to profile changes.


