Toggle Side Panel

  • Blogs
  • Consultants
    • Salesforce Product Expertise
      • Top Salesforce ConsultantsTop Salesforce Consultants
      • Marketing Cloud ConsultantsMarketing Cloud Consultants
      • Service Cloud ConsultantsService Cloud Consultants
      • Experience Cloud ConsultantsExperience Cloud Consultants
      • Analytics Cloud ConsultantsAnalytics Cloud Consultants
    • Salesforce Industry Expertise
      • Non-Profit Cloud ConsultantsNon-Profit Cloud Consultants
      • Financial Service Cloud ConsultantsFinancial Service Cloud Consultants
      • Health Cloud ConsultantsHealth Cloud Consultants
      • Commerce Cloud ConsultantsCommerce Cloud Consultants
      • Manufacturing Cloud ConsultantsManufacturing Cloud Consultants
    • Salesforce Experts by Location
      • USATop Salesforce Consultants in USA
      • IndiaTop Salesforce Consultants in India
      • AustraliaTop Salesforce Consultants in Australia
      • United KingdomTop Salesforce Consultants in UK
      • CanadaTop Salesforce Consultants in Canada
  • Webinars
  • Contact Us
  • Discussions
More options
    Sign in Sign up
    • Blogs
    • Consultants
      • Salesforce Product Expertise
        • Top Salesforce ConsultantsTop Salesforce Consultants
        • Marketing Cloud ConsultantsMarketing Cloud Consultants
        • Service Cloud ConsultantsService Cloud Consultants
        • Experience Cloud ConsultantsExperience Cloud Consultants
        • Analytics Cloud ConsultantsAnalytics Cloud Consultants
      • Salesforce Industry Expertise
        • Non-Profit Cloud ConsultantsNon-Profit Cloud Consultants
        • Financial Service Cloud ConsultantsFinancial Service Cloud Consultants
        • Health Cloud ConsultantsHealth Cloud Consultants
        • Commerce Cloud ConsultantsCommerce Cloud Consultants
        • Manufacturing Cloud ConsultantsManufacturing Cloud Consultants
      • Salesforce Experts by Location
        • USATop Salesforce Consultants in USA
        • IndiaTop Salesforce Consultants in India
        • AustraliaTop Salesforce Consultants in Australia
        • United KingdomTop Salesforce Consultants in UK
        • CanadaTop Salesforce Consultants in Canada
    • Webinars
    • Contact Us
    • Discussions
    Close search

    Activity › Forums › Salesforce® Discussions › How do I get the IP of the Salesforce Instance from which the callout is to be performed?

    Tagged: Account, API Callout, Http, IP Address, Salesforce Apex, Salesforce SOQL

    • Salesforce® Discussions

      How do I get the IP of the Salesforce Instance from which the callout is to be performed?

      Posted by Anup on May 10, 2016 at 6:49 AM

      How do I get the IP of the Salesforce Instance from which the callout is to be performed? As I need to have the IP populated in a request so that the external service could validate the request?

       

      Gourav replied 10 years, 5 months ago 2 Members · 1 Reply
      • Account
      • API Callout
      • Http
      • IP Address
      • Salesforce Apex
      • Salesforce SOQL
    • 1 Reply
    • Gourav

      Member
      May 24, 2016 at 10:57 AM

      The Salesforce IP addresses can change, and you should use Salesforce IP Address to whitelist as a starting point.

      With that taken into account, you can use an existing web service to tell you what the IP address is (for that request at least).

      HttpRequest req = new HttpRequest();
      req.setEndpoint('http://icanhazip.com/');
      req.setMethod('GET');
      Http httpReq = new Http();
      HttpResponse res = httpReq.send(req);
      System.debug(res.getBody());

      Log output from na5.

      10:09:49:424 USER_DEBUG [6]|DEBUG|182.50.78.8
      Don't forget to add http://icanhazip.com as a remote site.

    Log In to reply.

    • Public
    • All Members
    • My Connections
    • Only Me
    • Public
    • All Members
    • My Connections
    • Only Me
    • Public
    • All Members
    • My Connections
    • Only Me

    Popular Salesforce Blogs

    Omni-Channel Overview in 2024

    Blog in Others

    Omni-Channel is a Customer Service and console-based Salesforce feature that helps automatically route of different types of work items (such as Leads and Cases) to…

    Capacity, Configuration, Customer Communication, Customer Service, Flow
    Vimera | Andersen Apr 5, 2024
    1,426  Views

    Salesforce Consulting Services Companies Must Know 8 Things

    Blog in Salesforce

    Salesforce is more than just a CRM it can help you with all aspects of your business. If you do it right, and depending on…

    Business, Business Intelligence, Cloud Analogy, Cloud Marketing, Cloud-based Business Intelligence
    Hennery cavil Aug 30, 2023
    1,387  Views
    Send Salesforce Record Data { as Email functionality } via WebMerge

    Send Salesforce Record Data {as Email functionality} via WebMerge

    Blog in Data, Salesforce Implementation, Salesforce integration

    WebMerge is a great platform that allows our data to populate different types of documents and send it to various other platforms or contact automatically…

    Email in Salesforce, EmailMessage, Merge Fields in Salesforce, Record Data, Record Related List
    PRANAV Jan 29, 2018
    4,783  Views

    Popular Salesforce Videos

    Integration using Salesforce Connect

    Integration using Salesforce Connect

    Video in Salesforce Integration

    Salesforce Connect is a powerful App Cloud integration service, which enables users of Salesforce applications to seamlessly access and handle data stored in external sources,…

    Salesforce Training, Salesforce Tutorial, Salesforce Integration, Salesforce Applications, Salesforce Video
    Jogender Aug 9, 2021
    3,459  Views
    Multipurpose VF Component to Add Multiple Records on a Button's Click | Salesforce Tutorials

    Multipurpose VF Component to Add Multiple Records on a Button's Click | Salesforce Tutorials

    Video in Salesforce Development

    In this video, I will create a multipurpose VF component to add Contact records in a list on the click of a button then I…

    Salesforce Training, Salesforce Developer, Salesforce Tutorials, Salesforce Video, Salesforce Learning
    Kapil Jun 5, 2020
    2,419  Views
    Should You Learn Salesforce in 2020?

    Should You Learn Salesforce in 2020?

    Video in Salesforce Stories

    The Salesforce industry has been the best-kept secret of our careers with average salaries near $150,000 - but is it still a good technology to…

    Nauman Jun 18, 2020
    1,559  Views
    Footer Forcetalks logo

    support@forcetalks.com

    • twitterx

    Quick Links

    Advertise with Us

    Salesforce® Articles

    Dreamforce 2023

    Top Salesforce® Bloggers 2023

    Top Salesforce Consultants

    Get Listed

    Company

    Contact Us

    About Us

    Privacy Policy

    Terms & Conditions

    InsightHub

    Salesforce Blogs

    Salesforce Videos

    Salesforce Groups

    Salesforce Jobs

    © 2026 - Forcetalks ● All Rights Reserved

    Salesforce® is a trademark of Salesforce® Inc. No claim is made to the exclusive right to use “Salesforce”. Any services offered within the Forcetalks website/app are not sponsored or endorsed by Salesforce®.

    We use cookies to enhance your browsing experience. Please see our privacy policy if you'd like more information on our use of cookies.