| Delphi .NET (2) Database (71) Delphi IDE (89) Network (39) Printing (3) Strings (12) VCL (83) Windows with Delphi (280) New related comments Number of comments in the last 48 hours Access a password-saved paradox database without knowing the password |
Dynamically switch the Interbase port
Question: In our environment, we have Interbase servers installed on different machines, which - for security reasons - do not listen on the default port of 3500. Some listen on port 8000 or 7000.I'm writing a tool that shall connect to various servers (on different ports). How can I accomplish this? Answer: You need to modify the services file which on Windows systems is located in windowssystem32driversetcThe function SelectInterbasePort() as shown below will switch to a different port. For safety I would close connections before switching that file. It might not be a reliable situation that you are connected to multiple servers on different interbase ports simultaneously. (It might work, but I personally have not tested it.)
Comments:
| ||||||||||||||||||