What Is My IP Address? - IP Address Lookup, Bandwidth Speed Test, IP Info, plus more

Go Back   What Is My IP Forum > IP and Network Questions > Networking Questions

Notices


Closed Thread
 
Thread Tools Display Modes
  #1  
Old 09-11-2009, 12:29 PM
xdpirate xdpirate is offline
Member
 
Join Date: Sep 2009
Posts: 4
Default Setting up Apache on an old comp

Sup yo, I have an old laptop that I installed Apache on, to use it as a web server.

Thing is, when I try to access it from another PC on my network, all I get is the page with my router settings, and if I try to access it from outside the network, it simply times out.

Any ideas?
  #2  
Old 09-11-2009, 01:24 PM
wimiadmin's Avatar
wimiadmin wimiadmin is offline
Administrator
 
Join Date: May 2008
Location: Pigeon Forge, TN
Posts: 732
Default

Try giving it a static IP on your LAN if you haven't already. For example, assign it 192.168.x.2. Then when accessing it from another computer, you'll need to do http://192.168.x.2

If you've done this already and it's still not working, there may be a firewall setting on the apache machine preventing from letting any traffic in.

Make sure you can access it internally first.

Once you know it's working and you can access it, simply forward port 80 in your router to the static IP you give the apache machine...192.168.x.2. Then if you try and access it from the outside, it should work. If it doesn't your ISP may block port 80 so you'll have to do work around for that....and we can show you how....just give us an update of your progress.
__________________
Brian
Please Search Before Posting
  #3  
Old 09-11-2009, 01:39 PM
xdpirate xdpirate is offline
Member
 
Join Date: Sep 2009
Posts: 4
Default

Quote:
Originally Posted by wimiadmin View Post
Try giving it a static IP on your LAN if you haven't already. For example, assign it 192.168.x.2. Then when accessing it from another computer, you'll need to do http://192.168.x.2

If you've done this already and it's still not working, there may be a firewall setting on the apache machine preventing from letting any traffic in.

Make sure you can access it internally first.

Once you know it's working and you can access it, simply forward port 80 in your router to the static IP you give the apache machine...192.168.x.2. Then if you try and access it from the outside, it should work. If it doesn't your ISP may block port 80 so you'll have to do work around for that....and we can show you how....just give us an update of your progress.
Hi, thanks for your quick response!

For starters, how do I assign it a static IP?
I'm pretty "literate" with computers, but networking is a subject I haven't worked much with up until this point.
  #4  
Old 09-11-2009, 01:51 PM
wimiadmin's Avatar
wimiadmin wimiadmin is offline
Administrator
 
Join Date: May 2008
Location: Pigeon Forge, TN
Posts: 732
Default

First you'll need to figure out what your network settings are. If you have a Windows box, you can simply open up a command window by going to Start, Run, type in cmd and hit ok. Then at the prompt type ipconfig /all

This will tell you the Windows IP, subnet, gateway, and DNS. You can then use this information to assign your Linux box the necessary IP info. This link will take you to our Linux IP Commands so you can do all the necessary assigning once you get it your network information.

So if your Windows box is this:
192.168.1.100 (IP)
255.255.255.0 (Subnet)
192.168.1.1 (Gateway)

Assign your Linux box this:
192.168.1.2 (IP)
255.255.255.0 (Subnet)
192.168.1.1 (Gateway)
__________________
Brian
Please Search Before Posting
  #5  
Old 09-11-2009, 02:03 PM
xdpirate xdpirate is offline
Member
 
Join Date: Sep 2009
Posts: 4
Default

Quote:
Originally Posted by wimiadmin View Post
First you'll need to figure out what your network settings are. If you have a Windows box, you can simply open up a command window by going to Start, Run, type in cmd and hit ok. Then at the prompt type ipconfig /all

This will tell you the Windows IP, subnet, gateway, and DNS. You can then use this information to assign your Linux box the necessary IP info. This link will take you to our Linux IP Commands so you can do all the necessary assigning once you get it your network information.

So if your Windows box is this:
192.168.1.100 (IP)
255.255.255.0 (Subnet)
192.168.1.1 (Gateway)

Assign your Linux box this:
192.168.1.2 (IP)
255.255.255.0 (Subnet)
192.168.1.1 (Gateway)
Not running any Linux machines.
I'm running two computers, both on Vista. My router is a Linksys WRT54GL router.
  #6  
Old 09-11-2009, 02:19 PM
wimiadmin's Avatar
wimiadmin wimiadmin is offline
Administrator
 
Join Date: May 2008
Location: Pigeon Forge, TN
Posts: 732
Default

Ok...then on Vista, you'll need to run the command prompt in administrative mode to get the IP info.

Same command, ipconfig /all

Then assign a static IP to the Vista machine with Apache.

Open the Windows Firewall and make an exception for port 80 to be allowed.

Log in to the router, go to Applications & Gaming tab. Choose Port Forwarding. Forward port 80 to the static IP you assign the Apache machine. And that should do it.
__________________
Brian
Please Search Before Posting
  #7  
Old 09-11-2009, 04:42 PM
xdpirate xdpirate is offline
Member
 
Join Date: Sep 2009
Posts: 4
Thumbs up

Quote:
Originally Posted by wimiadmin View Post
Ok...then on Vista, you'll need to run the command prompt in administrative mode to get the IP info.

Same command, ipconfig /all

Then assign a static IP to the Vista machine with Apache.

Open the Windows Firewall and make an exception for port 80 to be allowed.

Log in to the router, go to Applications & Gaming tab. Choose Port Forwarding. Forward port 80 to the static IP you assign the Apache machine. And that should do it.
Alright, done! Thanks a lot for your help! I can now connect to my server internally on the network, and also connect to it remotely!

Again, thanks lots!
  #8  
Old 09-12-2009, 06:30 AM
wimiadmin's Avatar
wimiadmin wimiadmin is offline
Administrator
 
Join Date: May 2008
Location: Pigeon Forge, TN
Posts: 732
Default

Sweet!! Glad it's working.
__________________
Brian
Please Search Before Posting
Closed Thread

Bookmarks


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 05:34 PM.


What Is My IP - IP Command Lines - What is an IP Address - Speed Test - IP Address FAQ

Need IP address location detection service? Get it from IP2Location.com now.

Powered by vBulletin®
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Copyright - WhatIsMyIP.com