Jump to content

installing server for local testing ... safe from internet???


dsdsdsdsd

Recommended Posts

hello;

 

I am planning to install apache on a win xp laptop for development purposes, ie testing webapps with php/mysql backeneds on my local machine;

 

however I am concerned about security -- I do not want the server to be accessible by the outside world via internet and I don't think that I want the server to, itself, be able to access the outside world; in other words, no in or out access;

 

QUESTION: once a webserver is installed, is it on the web??

 

any thoughts;

 

thanks

dsdsdsdsd

 

Link to comment
Share on other sites

thorpe, thanks for responding;

 

I am curious why you mentioned router; when you say router, do you mean something similar to a home network router such as linksys, OR is there some inherent part of the server known as a 'router'; in theory there is no need for a home networking kind of router;

 

and similarly for the firewall ... do you refer to a common firewall like zonealarm OR is there an inherent firewall in the server???

 

 

thanks for your time;

 

dsdsdsdsd

Link to comment
Share on other sites

Yes, by router, he means like a linksys router, or similar.  The real question is do you have a router hooked up, or is the PC connected directly to a internet connection from your internet provider.  If this is the reason, if someone finds your IP address they can connect to the server.  If there is another piece of equipment between the two, then you will have to change setting to get in, which can only be done from the internal network (you have to change these.).

Link to comment
Share on other sites

peranha, thanks;

 

I suppose that since this will be a laptop, it will always be connected to the internet via a wireless connection, most often via a linksys network router, but also on occasions at the coffee shop or something similar ( btw, macs use cellular technology on their 'airport' -- does windows have something similar );

 

 

 

will the server attemp to 'get out' , ie pro-actively connect out to the internet OR does the server simply wait passively to be queried for requests such as for a webpage.htm??

 

do I configure the server or the router ... or both??

 

 

 

thanks, much to learn;

 

dsdsdsdsd

Link to comment
Share on other sites

If you computer is behind the router, people can't normally phone it to it. The router has to be configured to allow access.

AFIAK the server waits for someone to access the page. It doesn't try to push it out.

 

Chris

 

Yes, the server will not push out the website.  If you are at a coffee shop, then they will have the router set up to not forward to a port other than their own server if they have one set up, so that should not be an issue.  As far as the wireless connection, as long as you are behind some type of equipment, noone can get access to your PC unless you program the Router, firewall, or other equipment to forward incoming requests to that specific ip address.

 

 

Link to comment
Share on other sites

You don't necessarily need to be connected to a router in order to deny access to your server installed on your computer. You can just deny external connections to port 80 (default port in which Apache runs on) within your firewall or change the port Apache listens to, to another port such as 8080 or some other random unused port of your choice. However if you change the port Apaches listens to you'll need to define it in your url, eg instead of using http://localhost/ to access Apache you'll need to use http://localhost:8080/ instead.

 

Apache can also be setup to accept connections to certain ip address. By default Apache will accept connections from all ip addresses.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.