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, 3 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

    Types of Salesforce Sales Cloud Services

    Blog in Salesforce

    Modern sales teams need more than spreadsheets, follow-ups, and disconnected tools. They need a system that helps them sell smarter, close faster, and scale confidently.…

    Salesforce Sales Cloud Services, salesforcedeveloper
    Dean Feb 27, 2026
    379  Views
    salesforce automation tools

    Salesforce Automation Tools - Which Tool You Should Use

    Blog in Salesforce Tools

    Automation Tools: Salesforce automation software is a set of programs that help in automating business processes. Automation tools are one of the declarative gears in…

    Approval Process, automation tools, Business Process, Delete Records, email alert
    Ayush Apr 20, 2020
    7,103  Views

    DevOps for the Salesforce Ecosystem

    Blog in Salesforce

    The following is a summary of the information covered in the webinar: DevOps for the Salesforce Ecosystem. Modern IT Transformation Overwhelmingly, organizations are needing to…

    Application, Approval, Auditing, Automated Test, Automating Your Processes
    Flexagon Aug 24, 2021
    2,017  Views

    Popular Salesforce Videos

    Salesforce Financial Services Cloud Implementation Guide

    Salesforce Financial Services Cloud Implementation Guide

    Video in Salesforce Cloud Platform, Salesforce Implementation

    You’ve decided to use Salesforce Financial Services Cloud but where do you begin? How can you utilize Salesforce to track all your customer interactions and…

    Salesforce Training, Salesforce Development, Salesforce Integration, Salesforce Consulting, Salesforce Video
    DB Aug 31, 2023
    1,543  Views
    Salesforce Integration Using Oracle SOA Suite

    Salesforce Integration Using Oracle SOA Suite

    Video in Salesforce Integration

    In this video, Bristlecone gives an introduction to Oracle Cloud Adapter for Salesforce.com.  Afterwards, he goes into detail about how to integrate Salesforce.com using Oracle…

    Salesforce Training, Salesforce Tutorial, Salesforce Integration, salesforce, #integration
    Rahul kapoor Sep 7, 2022
    2,098  Views
    Step-by-Step Guide to Implementing Einstein Chatbot in Salesforce

    Step-by-Step Guide to Implementing Einstein Chatbot in Salesforce

    Video in Others

    Watch this video to learn about the following: Introduction to Einstein Chatbot and its capabilities. Prerequisites for setting up the chatbot in your Salesforce environment.…

    Salesforce Tutorial, salesforce, Salesforce Video, Salesforce Environment, Einstein
    SF Jun 24, 2024
    705  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.