sqlanywhere / node-sqlanywhere

SAP SQL Anywhere Database Client for Node
Apache License 2.0
39 stars 37 forks source link

Network adapter binding #20

Closed noelhibbard closed 7 years ago

noelhibbard commented 7 years ago

Is there a connection parameter to specify which network adapter to bind to? I am running on Win10x64.

noelhibbard commented 7 years ago

I figured it out. For anyone else trying to bind the client to a specific adapter here is what I did:

var conn_params = {
    CommLinks: 'TCPIP{Me=10.1.2.174;IP=10.1.1.16;ServerPort=2638}',
    ServerName: 'ourserver',
    UserId: 'DBA',
    Password: 'sql'
};

All the same stuff we would typically stuff into a connection string. It took me a while to figure out how it expected the comlinks options to be placed in the json object.