Web Server

well. I have a question for nrzero:

what happens if the computer with apache installed (well, I use one of the latest builds of jakarta-tomcat) is in a LAN behind a DSL router?? How should I route this pc inside the LAN, I mean, I have an static IP address, but I have another IP address inside the LAN... :ph34r:

I can access to the service from any of the LAN computers, but not from the internet.

any ideas please?

frenzy.floyd

see ya

#20807

I think i'm asking the same question as frenzy floyd.

I suppose setting up a dns server would help but i don't really have the funds (or the knowledge) to do that.

Is there another way?

#20833

well im pretty sure if your in a lan with a fire wall so your IP is masked to like.. 192.X.X.X for instance.. you may either have to open up Ports 80 on the router/firewall or what ever, which is what most default webservers are on... and inorder to access it from th outside world... meaning not in your land.. you have to use the REAL ip address of the computer being the server.. and not the fake router one for the lan.

-bolero

#20834

but surely there will be millions of 192.168.0.1's for example all around the internet..

#20835

yes.. what im saying is you need the REAL ip address your computer gets from your ISP in order for people in the outside world to access your PC behind a router...

because if you try to use the firewalled IP address.. it cant resolve it since there are millions of others.. so you need to get your REAL ip address

-bolero

#20838

ok sure, i'm being a dumbass ;)

however, my webserver is behind a gateway,not a router like frenzy, so the webserver doesn't get given an ipaddress by the isp.

or does it get a real ip address too? how would i find that out?

edit: the gateway is windows xp pro, the web server is linux mandrake 9.0

thanks for the help :)

#20852

well im pretty sure if that box can reach the internet.. it HAS to have a REAL ip address valuable for the internet.. so it will have a real ip from the internet service provider..... im not exactly sure how to figure that out.. i forget that... umm probebly some tool in linux to do it.

-bolero

#20857

Go to http://localhost to verify your server's status. Then I recomend you go to one of those free IP checkers that tell you what your IP address is. Then just type your ip address intothe browser and viola you are at your server. But use the free dns host that I mentioned, they are reliable and youget a real web address. ;)

#20861

yeab ut the problem is most of the time those free IP checkers will get the False IP I.E the Firewall Router IP falsinng the Real IP

as all of them do that with me.. i have yet seen one that got my real IP

so im not sure hehehe

#20862

Dyndns.org will automatically look up your IP address when adding a server to your account after you register. Try that. ;)

#20885

For windows, in a command prompt, just type in "ipconfig" (w/o quotes). That will give you every IP address you could have wanted.

#20889

typing ipconfig /all will give you all the ip and more

I don't really need to know my gateway's ip though.

Also i don't really get this real ip business.

well im pretty sure if that box can reach the internet.. it HAS to have a REAL ip address valuable for the internet..

I don't know if thats true, i think the external computers only see the ip of the gateway and send information to it. The gateway can figure from there where the information sould be going using the NAT thing.

Thats probably wrong, but its how i understand it.

Would this work though:

saymy gateway is myname.dyndns.org using the ip updater thing on their website.

Could i access my mandrake machine (full hostname mandrake.myname.dyndns.org) by putting in that long thing. It should get resolved ok until the gateway gets to resolve it to the mandrake computer.

I think that should work, i'd just end up with a massive name for my web server :(

fissy

#20924

well, I'm studing computer science and this grade I have 120 hours of computers network :( (a bit boring).

If you are behind a LAN you don't have a reachable IP address from the internet (you'll have an IP address INSIDE the LAN), the router (or gateway, etc) will do the work, he is the reachable address from the outside.

The only single address for each computer is given by the network card (MAC address -for medium access control- not for MACintosh :P ) but it's not reachable by the IP level in the TCP/IP architecture because this addresses belongs to a lower level. You can see your mac address with ipconfig /all, it's the value where says physical address (in hexadecimal format)

About the open/closed ports, this has nothing to do with it, as we're supposing that the router has the necessary ports enabled.

I've heard that this route problem inside the LAN can be solved using tunneling technics in the router, but I don't know anything about it, only have heard the name.

Can someone confirm this? or knows something about tunneling?

frenzy.floyd

see ya

#20927