Skip to main content

Notifications

Small and medium business | Business Central, N...
Suggested answer

How to make port open for APIs

Posted on by 175
Hi ,

I am currently using on-premise business central APIs. I am able to access it inside the particular server. However the port which is being used in API URL needs to be accessed outside of the server. i.e., those who have username and password should be able to access it. How make port open?
 
Thanks
  • Suggested answer
    Dharmendra_Chavda Profile Picture
    Dharmendra_Chavda 244 on at
    How to make port open for APIs
    Hello Rajaneesh,
     
    For the On-premise, we need to Open the port to access API from outside the server.
     
    Open the port from "Firewall" and check.
    If it's Azure then Open the port from network.


    Open firewall ports in Windows.
    You can manually permit a program to access the internet by opening a firewall port. You will need to know what port it uses and the protocol to make this work.

    1. Navigate to Control Panel, System and Security, and Windows Firewall.
    2. Select Advanced settings and highlight Inbound Rules in the left pane.
    3. Right-click Inbound Rules and select New Rule.
    4. Add the port you need to open and click Next.
    5. Add the protocol (TCP or UDP) and the port number into the next window and click Next.
    6. Select Allow the connection in the next window and hit Next.
    7. Select the network type as you see fit and click Next.
    8. Name the rule something meaningful and click Finish.
  • Judy Profile Picture
    Judy Microsoft Employee on at
    How to make port open for APIs
    Hi Rajaneesh,
     
    Please check the useful Documents to see if it can help:
     
    Best Regards,
    Judy
  • Suggested answer
    Rajaneesh H Profile Picture
    Rajaneesh H 175 on at
    How to make port open for APIs
    Hi @Judy,
     
     
    Thanks for the time and effort. However I have done these all steps. My question is that I am able to access it inside the particular server. However the port which is being used in API URL needs to be accessed outside of the server. i.e., those who have username and password should be able to access it. How make port open?
     
    Thanks again.
  • Suggested answer
    Judy Profile Picture
    Judy Microsoft Employee on at
    How to make port open for APIs
    Hi Sir,
     
    Business Central exposes an API that makes it possible to integrate with other services. To enable integration with these APIs, you must go through a few steps to enable APIs in Business Central.
    Once you have the API access enabled, you can write code that integrates your web service or SaaS solution with Business Central. 
     
     
    Best Regards,
    Judy

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,900 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,275 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans