|
#1
| ||||
| ||||
| Could anyone tell me how to run a webserver behind a router and DSL-modem? The Mac Help index says I have to look at the address down at the preference panel; but this address isn't a IP address... Because the iMac is behind a router and DSL-modem (in a network), the address is: http://igor2200/ (Router: Draytek Vigor 2200E)... Whatz the problem?? Thankx, AppleWatcher
__________________ Signed. |
|
#2
| ||||
| ||||
| If you mean your router has a NAT, then you have to go into the router's config and open port 80. |
|
#3
| ||||
| ||||
| yeah hmm i just discovered that if I type http://localipimac:80 the Apache site is opened! hmmm, but how do i get my own ip address?
__________________ Signed. |
|
#4
| |||
| |||
| What kind of router are you using? |
|
#5
| ||||
| ||||
| tk4two1: he said in his first post. AppleWatcher: as I said, you have to go into your router's config and open port 80 for your internal IP address. |
|
#6
| ||||
| ||||
| YES YES I DID >> Port 80 stuff is now redirected to my iMac... But, how do I get my OWN IP? Or is this just the internal network IP:80?
__________________ Signed. |
|
#7
| ||||
| ||||
| Re: YES Quote:
|
|
#8
| ||||
| ||||
| AppleWatcher, This topic has been addressed on this site before. Do a search for Router and you should hit several responses. I'll give you the cliff notes for now: First to find your ip do the following: From your OSX machine, open System Preferences - Look for the 'network' icon and click it. - Show your "Built-in Ethernet" settings - Select TCP/IP tab - Look at the number next to the "IP Address" listing - Write that number down somewhere. More then likely that number is NOT a real world IP address. The short of this is that there are two types of IP addresses... "real world" and "virtual" When your machine has a real world ip address eveyone in the entire world will reach that machine when addressing those numbers in a browser for example. All web services have to traffic to a real world ip address at some point. Since everybody in the world would see the same result. Real world ips have to be unique. And as such usually cost money. But put away your check book... because you already have an address. You got one from your ISP when you purchased your internet connection. But there's a problem, you can't use it. Your router is already using it. Your router uses that 'real world' ip address to traffic information to any from your ISP. So how do you solve this problem then? Enter in virtual ip addresses. Every machine connected to your router more then likely has been asigned an ip address (a virtual ip address) by your router. This is probably the number you wrote down earlier.... something like 10.0.0.101 or some low number like that. Each router will be different. What you wrote down is that machine's virtual ip address. Every machine you add to your router will be assigned an virtual ip address... This addressing system only means something to your router and the machines on your local area network (LAN). The virtual ip addresses are used for traffic between your router and computer(s) AND NOT the outside world. (Wide Area Network (WAN)). So all you have to do is to tell your router that you want all (in this case) web traffic to go to your web server. Then those people from the outside world who want to connect to your web server will have to use your Real World IP (which your router is using.) When you purchased your router you should have had some utility or administrative options... one of which should be DMZ hosting. Turn DMZ hosting on from your router (each brad is a bit different or else I'd give you step by step instructions). You should have to specify your DMZ host address... enter the ip address you wrote down earlier. If you have port forwarding, make sure port 80 is pointing to that same address and also make sure you don't have that port (80) closed, if your router acts as a firewall like mine does. Bam, you're done... router now knows that when it gets a request for information on port 80 to route that traffic to your webserver. Again this is really the short of it.. I'm assuming your router is acting as a DHCP server and you that you know how to configure your router. Hope this helps...
__________________ //evildan |
![]() |
| Thread Tools | |
|
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Finder thinks it isn't running at login (But it is) | JeffCGD | Mac OS X System & Mac Software | 5 | June 13th, 2003 02:07 AM |
| running archicad in classic - keyboard issue | yerodis | Mac OS X System & Mac Software | 0 | April 4th, 2003 04:53 AM |
| Command line question (Info for running processes?) | chemistry_geek | Unix & X11 | 1 | November 8th, 2002 12:29 AM |
| TiBook: When does your fan start running? | sebhoff | Hardware & Peripherals | 1 | August 3rd, 2002 06:22 PM |
| Multiple httpd processes running? | snowgurl | Mac OS X System & Mac Software | 2 | November 12th, 2001 11:15 PM |