DelphiFAQ Home Search:

Change the port that Interbase listens on


comments2 comments. Current rating: 5 stars (1 votes). Leave comments and/ or rate it.


Our firewall does not allow incoming traffic on port 3050 (which is the default port for InterBase). How can I change that?


You need to edit a text file called 'services'.

1) shut down the interbase server. (In windows: go to the control panel, admin tools, services, and stop the IB Guardian.)

2) locate the 'services' file. (Hint: see box below)

3) locate the following line:
gds_db 3050/tcp
and change it to
gds_db 8000/tcp #we operate on 8000 now

4) restart the InterBase server.

Note about this services file:
The services file is a local source of information regarding each service available through the Internet. Applications may call the getservbyname() routines to access this information.

Location of file 'services':

Windows:  c:/windows/system32/drivers/etc/services

Unix:     /etc/services
or        /etc/inet/services


2008-02-11, 15:07:00
anonymous from Czech Republic  
Yes I am. Thanks it is answer is good for me. Change port 3050. A.G
2008-03-25, 19:56:20
anonymous from New York, United States  
hey this was very helpful at the last moment.

i am working with Interbase 8 on 2003 server running a 3rd party app that would only use the default port. anyways you gave me a clue to whats the error: 'No connection could be made because the target machine actively refused it' it was no communication due to wrong port. hope it will be useful to someone in the future.

thank you :)

Shai C




NEW: Optional: Register   Login
Email address (not necessary):

Rate as
Hide my email when showing my comment.
Please notify me once a day about new comments on this topic.
Please provide a valid email address if you select this option, or post under a registered account.

Show city and country
Show country only
Hide my location
You can mark text as 'quoted' by putting [quote] .. [/quote] around it.
Please type in the code:

Please do not post inappropriate pictures. Inappropriate pictures include pictures of minors and nudity.
The owner of this web site reserves the right to delete such material.

photo Add a picture: