Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6990373
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T19:20:24+00:00 2026-05-27T19:20:24+00:00

I created an AMP web application that was originally going to be served from

  • 0

I created an AMP web application that was originally going to be served from a traditional 3rd party host.

As we finished up, the client decided to host it internally, on a server in their office network. The application is only meant to be available to staff members, but those staff members will often be off-site. I had no involvement in setting up their network, which uses at least one server running windows server 2003. The client machines I saw were XP.

I set up Apache, MySQL and PHP on the server 2003 machine, and installed the application. The application is built on the CodeIgniter framework, so I set the base_url to the internal IP (192.168…), and we tested from within the network. Everything worked fine.

Next, we asked their network guy to open port 80 for apache. I set the base_url to the external IP, and tested from my home (using the external IP as the web address), and it works fine.

However, when attempting to access the application using the external IP from within the network, they’re unable to connect. I can reset the base_url to the network IP, and they can access it using the network IP, but then it the application fails when connecting externally (since the base_url, used throughout the application, is pointing to the internal IP).

It suppose I could let CodeIgniter determine the base_url (by leaving the variable as an empty string), but would rather figure out why the external IP fails in-network, and try to correct that.

The server we’re using is not dedicated to the AMP stack (in fact, it has at least one other application broadcasting to the internet that must have been using IIS, as well as an FTP server used for office scanners), so I suppose there might be some conflicts there.

I know very little about windows networking. A quick search suggested this might be because of NAT, but didn’t offer a work-around.

Their network guy has no suggestions, and said that everything should be fine.

Is it possible to have users inside the network access the Apache server using the external IP, and if so, what needs to happen to enable that?

TYIA

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T19:20:25+00:00Added an answer on May 27, 2026 at 7:20 pm

    This isn’t Apache related, nor is it CI related. It’s often impossible to reach the external IP address from within the network.

    Frankly, I don’t know exactly why that is. I do know that it’s related to how NAT (Network Address Translation) works or at least how it’s implemented.

    For a detailed overview of why this is, you should ask this question on serverfault. If you’re simply a programmer who has to deal with it, accept that NAT usually works only from inside to outside and outside to inside, but not inside to inside.

    You already mentioned one of the solutions in your question – don’t use base_url. You could also simply run the server on an external IP address (not your company IP, but let’s say a datacenter or something).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've created a graphing application that calls a web service. The user can zoom
I have a Web Application that I'm trying to move from Sun Application Server
I have a VB web application that reads from a CSV file which contains
I've created an application that exposes a self-hosted OData web service. The web service
I've created an web authentication app using c# & asp.net and want to bounce
I recently created a advanced form with elements that use jquery's $().hide & $().show
glGenTextures(1, &textureid); Assuming that the texture was created succesfully, could textureid be 0?
I am developing a Java web services application that is (mostly) to be used
I have a web application that uses spring security. It uses <intercept-url ../> elements
I'm developing an enterprise-like application that fetches data from a remote server. I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.