Trying to set up a web server

Hello, I have the linksys compact wireless-g router, and im trying to set up a home server to host mine and a friends website on, and its becoming a huge pain. Everytime I type in my I.P adress (or give it to a friend to try) it always brings them to my router settings page asking for the user name and password. The remote access is disabled. Any ideas?

You’re getting connection loopback ---(http://www.dyndns.com/support/kb/why_cant_i_connect_to_my_server.html) 
Sound like you would benefit from the following site, if you haven’t been there.http://www.boutell.com/newfaq/creating/hosting-category.htmlStart with “How do I host my own website at home?” this will mention the other areas you need to know. You said you were a newbie and in pain already – why do you want to do this???  
It’s fun if you stick with it - you will spend time talking with Linksys support – they help. If your ISP blocks port 80 then you have another level of learning to do. 
If you want to use XAMPP /Apache web server software (I recommend). You need dnydns.com(http://www.dyndns.com/support/kb/xampp_apache_quick_guide.html) 
Good luck,
Euston
Oh - other forums
Dnsstuff.com forum
Dslwebserver.com forum 

Similar Messages

  • Setting up a web server

    Hi,
    I have four or five domains registered and now I’m paying for web hosting (not much, but…). For many months now, I’m reconsidering to set up my own web server (I have DSL connection 24/7 so…).
    One idea was to go with MS 2003 SERVER on some older PC I have, but since I’m not some expert (more or less dummy) for this things… gone down the toilet .
    Then I bought an iMac (the best investment in past few years regarding computers) and on apple.com site I saw OS X SERVER software and more I was reading this more seemed that this is something for me, for my idea to set up a server.
    Now I bought on eBay used G4 Mac Mini and I will install a OS X SERVER (please, don’t tell me that I’m trying to put a BMW engine into SMART… I know that and I hope that will somehow work… if not, there is still eBay to sell everything and there is still a toilet for my idea:-( ). However, the pages I own are not some crucial things for state security, but still I need PHP5 and MySQL (as far as I know OSX have this, right?).
    My questions are:
    To set up web server I need a DNS (like: nameserver.mydomain.com) otherwise nothing, right?
    Do I have to register somewhere my own DNS like domains and to pay annually for this (any suggestion where)?
    Hosting my other web sites (with other domains) on OSX will not be a problem. I suppose that OSX can do this?
    If I have nameserver.mydomain1.com, will be a problem to set up an email server/account for mydomain2.com or I have to set up a DNS also for this second domain (will be on same server)?
    I’m sorry, if my questions are stupid (on the other hand, someone said that there are no stupid questions, the answers can be stupid), but I’m really not familiar with this things.
    Many thanks in advance and excuse me for my English,
    M

    Faganel, did you ever find a "Leopard Server as a Web-Server - Setup for Dummies" kind of guide or article?
    If so, I'd really like answers and tips, to the same kind of questions you have.
    I don't think this is the best forum, to ask for newbie-style advice. The people here are hard-working system-admins, who does web-server setups for a living, and they really don't have time, to answer questions like ours.
    I've done dozens of Windows 2000 web-server setups at work, and the funny thing is, I could probably have helped you, had you gone with the Windows 2003 Server
    However I'm trying to get some Xserves into our server room at work, and am evaluating Leopard Server here at home, and would like to do the same thing as you - Setup a Leo web-server with dyn-dns or something like that.
    But because my knowledge is Windows, and because I've always worked with our own DNS and IP's, I'm having trouble getting my Leopard web-server here at home, to serve to the internet.
    I can get it to serve perfectly to my own sub-net, but when I try to access it from the outside, I get nothing. I've setup my DSL-router to point web-traffic to the Leopard web-servers IP, but still get nothing.
    However, I've just started, and I'm sure I'll get it to work, but some pointers would be really cool - obviously it can be done, just need to get my head around the fact, that I'm home and dealing with DSL and DSL-routers, and not the Ciscos and SonicWalls I'm used to at work
    I must say though, that Leopard Server is an amazing product, and I'm positive well need to start buying Xserves from now on at work. The time saved setting them up and administering them, is HUGE when compared to the Win2000 boxes I have to fight every day at work
    I also think Apple could make a very cool home-server, if they wanted too - I have no idea if it would sell, but Leo Server is almost so easy to setup now, that most people could get the hang of it ...
    Anyways, if you or someone else has a guide, to getting it to serve webpages behind a DSL-router with a static IP, I'd be more than grateful - I'm sure this would impress my boss enough, that I'd get a handsome budget to explore Leopard Server some more - I't just awesome from a SysAdmins point of view.

  • Can I set up a Web server for my internal network with iWeb.

    I'd like to set up a web page that is only accessible from my internal network and hosted on one of my macs. I'd like to host home movies in quicktime format that I can stream to my iPhone and iPod Touch. Can I do this with iWeb? Do I need additional software to serve the site off of my mac? I would also like to set up passwords on a sub-page that will contain PG-13 and R rated movies - is this possible as well?
    Thank you.

    Start your personal webserver.
    Put the iWeb pages (or any webpage) in the root folder of your personal webserver or in the webfolder of your Home directory.
    Either:
    /Library/WebServer/Documents/
    or
    ~/Sites/
    Its' an Apache webserver. The manual is on your computer too.
    <http://localhost/manual>
    Any questions about that server can be found in Discussions. It's not iWeb specific.

  • Is there a definitive guide for setting up a web server folder to properly host an Adobe Shared Review?

    In an effort to replace Acrobat.com as the host of a shared review file, I have found myself going in circles. I have prepared a folder on our web server, yet I cannot get Acrobat to connect during the send for shared review process. I get the "A network connection could not be created" status message.
    I have found many responses to questions about the change telling me that using a web server folder is an option, but no guide for the requirements of its configuration. Can anyone help? What kinds of permissions, protocols, details must I verify to make sure a web server folder will work?
    Adobe?

    I was under the impression that any webdav would do.
    Acrobat Shared Reviews & webdav « Caveat Lector

  • How to resolve the issue "ignoring compiler setting" in Tomcat Web Server

    Hi All,
    In the Environment set up
    jdk1.3.1_09
    Apache Tomcat 4.1.24
    I'm getting the following error when i request a jsp file.
    Please help to solve this issue.
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: -1 in the jsp file: null
    Generated servlet error:
    [javac] Since fork is true, ignoring compiler setting.
    [javac] Compiling 1 source file
    [javac] Since fork is true, ignoring compiler setting.
    [javac] C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\_\jsp\ConnectionPooling_jsp.java:44: cannot resolve symbol
    [javac] symbol : class PCSTDatabaseConnectionPoolingBean
    [javac] location: class org.apache.jsp.ConnectionPooling_jsp
    [javac] PCSTDatabaseConnectionPoolingBean connectionpool = null;
    [javac] ^
    [javac] C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\_\jsp\ConnectionPooling_jsp.java:46: cannot resolve symbol
    [javac] symbol : class PCSTDatabaseConnectionPoolingBean
    [javac] location: class org.apache.jsp.ConnectionPooling_jsp
    [javac] connectionpool = (PCSTDatabaseConnectionPoolingBean) pageContext.getAttribute("connectionpool", PageContext.SESSION_SCOPE);
    [javac] ^
    [javac] C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\_\jsp\ConnectionPooling_jsp.java:49: cannot resolve symbol
    [javac] symbol : class PCSTDatabaseConnectionPoolingBean
    [javac] location: class org.apache.jsp.ConnectionPooling_jsp
    [javac] connectionpool = (PCSTDatabaseConnectionPoolingBean) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "PCSTDatabaseConnectionPoolingBean");
    [javac] ^
    [javac] 3 errors
         at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:130)
         at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293)
         at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:353)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:370)
         at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:473)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:190)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
         at java.lang.Thread.run(Thread.java:479)

    [javac] PCSTDatabaseConnectionPoolingBean connectionpool = null;
    [javac] ^
    [javac] C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\_\jsp\ConnectionPooling_jsp.java:46: cannot resolve symbol
    The compiler doesn't know what PCSTDatabaseConnectionPoolingBean is. Have you properly imported the class?

  • Need help setting up web server with WRT54GS

    Hello,
    I am trying to set up a web server with my linksys router. For the network settings, I have used 192.168.001.150 as my primary IP (192.168.1.150, all 3 numerical characters have to be filled in), 255.255.255.000 as my primary netmask and 192.168.001.001 (192.168.1.1) as my gateway. I have gone into my router and then enabled port fowarding for port 80 to 192.168.1.150 but I still cannot access my web server. What could be the problem?
    Any help would be greatly appreciated. I'm trying to set up this server so I can test scripts and things.

    bump

  • Setting apache as a front end host-proxy web server for weblogic 10.3.3

    Hi ,
    i have installed apache 2.2.21 in the red hat linux 6 environment.Now i am trying to set that apache web server as a front end host ,proxy web server for my weblogic 10.3 application server cluster. My apache is listening to the port 8080.
    What changes i had to made in admin console of my server as well as in the httpd.conf file of apache.
    Can any one guide me how to proceed ?
    Any help is highly appreciated......

    Thanks Ravi,
    i have already gone through http://docs.oracle.com/cd/E12840_01/wls/docs103/plugins/apache.html.
    In my case "mod_wl_22.so" was not available but i downloaded this p10051826_1033_Generic.zip file from where i got that file and make it available in the modules directory, changed the file permissions (using chmod 755 mod_wl_22.so) and also changed the httpd.conf file as below :
    LoadModule weblogic_module modules/mod_wl_22.so
    <IfModule mod_weblogic.c>
    WebLogicCluster wlserv1:7001,wlserv2.com:7001
    MatchExpression *.jsp
    </IfModule>
    By using /bin/ls command i checked the following :
    /bin/ls: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, stripped
    Using file mod_wl_22.so i checked the following:
    mod_wl_22.so: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, not stripped
    My problem is when i used ./apachectl -t i got the following error :
    httpd: Syntax error on line 112 of /u40/app/apache/conf/httpd.conf:
    Cannot load /u40/app/apache/modules/mod_wl_22.so into server: libstdc++.so.5:
    cannot open shared object file: No such file or directory
    So can u please guide me where my problem is and how to rectify it ? Its urgent. please help me.
    Thanks
    Jyoti Ranjan

  • Giving control to single vi through web server?

    Hello,
    I am trying to set up a web server within my LabVIEW 7.1 software but I
    am wondering how you can only give control to a single vi.  What I
    would like to do is give control to a single vi and then have
    approximately 15 other vi's that are read-only.

    Not sure I understand what you are trying to do.
    What do you mean by "give control to a single VI" and "15 other vi's that are read-only".
    The web interface normally just shows the front panel of a VI. This can
    be set to allow control of the VI, or just view it. Permissions can be
    set so only authorized machines can access the web page with the VI.
    Ed
    Ed Dickens - Certified LabVIEW Architect - DISTek Integration, Inc. - NI Certified Alliance Partner
    Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.

  • How to edit Webi Server's setting of "stopped 5 times in 60 minutes"

    It is knows that Webi Server will be considered failed while it has stopped 5 times in 60 minutes.
    Could we edit it's setting so that Webi Server could be considered failed while stopped at 6(7,8,...) times at Linux Environment or Windows?

    Yes, If you have rights to "CMC"(Central Management Console) then you can edit all servers properties.
    Thank You!

  • Trying to set up FTP server

    I am trying to set up an FTP server using my macbook. I have followed the steps on http://www.macinstruct.com/node/152 but where I am running into trouble is that I have to assign a static ip to my computer. My home network is as follows: ISP -> D-Link DI-604UP router -> Airport Express (bridge mode) -> Macbook. Do I need to set up the Airport Express with a static ip as well, or can it remain dynamic and simply set my macbook to static. Any suggestions would be appreciated. Thanks

    Do I need to set up the Airport Express with a static ip as well, or can it remain dynamic and simply set my macbook to static
    Since your AirPort is running in Bridge mode (which it should be in this setup) then the AirPort IP address doesn't matter. Only the Mac server needs a static IP address.
    Even so, consider the implications of using FTP - it's an insecure protocol and you run the risk of exposing your system to unwanted attention from hackers, bots and scripts that will try to exploit weak FTP services. Before you go much further I'd recommend evaluating what you're trying to achieve, and whether there's a better (i.e. non-FTP) way of doing it.

  • Setting up IC Web Client in CRM 5.0 SP06

    Hi Experts:
    I am trying to set up IC Web Client on our CRM server. The CRM consultants have already set this up in SE80. However, after calling the transaction CRM_IC, i enter the user name and password, but 60 seconds after that I get the time out error with the following message:
    Detail: Connection to partner timed out after 60s
    I beleive that this is happening because the following parameter hasn't been set up in the instance profile:
    icm/server_port_0 = PROT=HTTP, PORT 1080, TIMEOUT=30, PROCTIMEOUT=600
    However, I am not sure on the Port number, should it be 1080 or 80<Sys No.>
    Please let me know what I should do here
    Thanks
    Imran

    Arright:
    I had to add one parameter for the instance profile and modify another in the instance profile.  Please see OSS note 824554
    ADDED: Parameter Name: icm/host_name_full
    MODIFIED: icm/server_port_0 (SEE OSS Note for details)
    icm/server_port_0 = PROT=HTTP, PORT 1080, TIMEOUT=30, PROCTIMEOUT=600
    WE also noticed that the initial load of each item took a lot of time.  ~20 minutes.
    Please be advised that this is development environment.
    Once the initial objects were loaded..it works good.
    IK

  • Iplanet  web server 7 -how to get more information when a certificate is untrusted ?

    Hi
    When a client tries to access to iplanet 7.0.15, we only get a line in the errors log with a simple error., for instance SSL_ERROR_UNKOWN_CA_ALERT...
    We would like to know if it is possible to configure iplanet to get more information about this request..
    iPLANET is receiving requests from a lot of clients and sometime it is difficult to identify the source of a error without more information..
    We would like have similar information that access log shows when certificate is valid
    We get the same information with log-level = info or finest..
    Thanks
    Uge

    Hi Uge,
    Setting the iPlanet Web Server log level to 'finest' will give you more information, but it is very verbose, and you still might not get the information you are looking for. You might want to try 'fine' or 'finer' first to see if either of those gives you the information you  need.
    With regards to the above error, SSL_ERROR_UNKOWN_CA_ALERT, this means that the client presented a certificate in the SSL handshake that was signed by a CA that the Web Server doesn't have in it's certificate database. In order to ensure the Web Server is kept upto date with the latest set of public CA certificates, I would recommend you upgrade to the latest version.
    If you know that the certificates the clients are using are from an internal CA, you need to ensure the Root CA Certificate from that internal CA is installed in the Web Servers certificate database as a trusted certificate.
    regards
    Tracey

  • How to install Apache Web Server with PHP on Sun Solaris Sparc machine

    Hi,
    We are trying to install the Apache Web Server and the PHP package on a Sun Solaris Sparc machine running on SunOS 5.8. We are having compilation problems with the source code of both these packages.
    Does anybody know if there are ready solaris packages for Apache and PHP available from where we can download and install instead of source code compilation?
    Or any instructions / things to watch for when installing Apache with PHP (if anybody has tried installing Apache with PHP on Sun Solaris earlier) is most welcome.
    Thanks,
    Harish

    Apache should be bundled along with Solaris check in "/var/apache" in Solaris 8 and Solaris 9
    php is available at www.php.net
    I found an old document for installing PHP maybe this will help.
    Cheers
    -Dhruva
    +++++++++++++++++++++++++++++++++++++++++++++++++++++++Installing PHP 3.x for Apache 1.x.x on Solaris
    Introduction
    This document describes how to install PHP for Apache on Solaris.
    You should have Apache installed before trying to install PHP.
    If you want to use PHP with MySQL then you must install MySQL first.
    Before we Begin
    1. These instructions assume that you have Apache installed according to instructions.
    Getting PHP
    1. You must be logged in as root to perform this installation.
    su root
    2. I save all my downloads in:
    /usr/local/dist
    If you don't already have one, you may need to create that directory now:
    mkdir /usr/local/dist
    3. You can get PHP 3.0.14 from here(www.php.net).
    cd /usr/local/dist
    ftp ftp.php.net
    cd pub/distributions
    bin
    get php-3.0.14.tar.gz
    bye
    Installing PHP
    1. We will install PHP in /usr/local/build, but use a tricky tar command
    to do it in on hit from the download directory:
    cd /usr/local/dist
    tar xvfz php-3.0.12.tar.gz -C ../build
    Compiling PHP
    1. First let's get where the action is:
    cd /usr/local/build/php-3.0.14
    2. You now have 3 options:
    * Simple PHP install without MySQL - goto step 3
    * Simple PHP install with MySQL - goto step 4
    * Custom PHP install - goto step 5
    3. Simple PHP install without MySQL. Next, jump to step 6.
    ./configure --with-apache=../apache_1.3.12
    4. Simple PHP install with MySQL. MySQL must be installed before you can configure PHP to use it. I recommend that MySQL should always be reachable with /usr/local/mysql. Even if you install it else where you
    should create a symbolic link from /usr/local/mysql. Otherwise the compiler can have problems finding the mysqlclient library. The command
    should look like this:
    ./configure with-mysql=/usr/local/mysql with-apache=../apache_1.3.12
    Next, jump to step 6.
    5. Custom PHP install. Take a look at the available configuration directives by using this command:
    ./configure --help
    6. Now we can make the PHP executable. This may take a while.
    make
    7. Now we install the PHP module with:
    make install
    Adding the PHP Module to Apache
    1. Now we have to setup Apache to include the PHP module:
    cd ../apache_1.3.12
    2. Re-configure Apache to use the PHP module. You should use your previous Apache configure command along with the PHP activate module directive.
    You can see your previous Apache configure command by doing:
    cat config.status
    You can configure Apache using the previous command with the added PHP module by doing:
    ./config.status --activate-module=src/modules/php3/libphp3.a
    If you used the simple Apache install from instructions the command will look like this:
    ./configure prefix=/usr/local/apache activate-module=src/modules/php3/libphp3.a
    3. Make and install Apache with PHP enabled:
    make
    4. We need to stop the server before installing the files:
    /usr/local/apache/bin/apachectl stop
    5. Now we can install the new binaries:
    make install
    6. Start apache again (now running the new php enabled version):
    /usr/local/apache/bin/apachectl start
    Setting Up PHP
    1. We have to tell Apache to pass certain file extensions to PHP. We do this in Apache's httpd.conf file.
    cd /usr/local/apache/conf
    2. Edit the httpd.conf file. If you do a search for php you will find a couple of commented out lines telling Apache to use the PHP module. You should uncomment them to look like this.
    AddType application/x-httpd-php3 .php3
    AddType application/x-httpd-php3-source .phps
    3. I prefer to use the extension .phtml, you can use whatever extension you like (even .html) by adding lines to httpd.conf like this:
    AddType application/x-httpd-php3 .phtml
    Check that it Works
    1. We have to restart Apache to make these changes take effect on the running server.
    cd /usr/local/apache/bin
    ./apachectl restart
    2. Apache should now be running with PHP enabled. The server version should include PHP/3.0b2.
    ./apachectl status
    Apache Server Status for dev.synop.com
    Server Version: Apache/1.3.9 (Unix) PHP/3.0.12
    Server Built: Oct 25 1999 00:37:07
    3. Now it is time to test PHP with a page. The simplest thing to do is create a page called test.php3. My file is here. This file contains the
    following text:
    <?php phpinfo(); ?>
    4. Point your browser at this file on the virtual host which you used:
    http://localhost/test.php3

  • Mac as web server

    I am trying to set up a web site for my students using my computer. According to my Missing Manual it should be as easy as turning on web serving and providing my computer address. This isn't happening, so I've missed something! When testing the address a 'Server is not responding' message appears. I have a broad band connection to my AirPort Express. Can anyone help?
    Thanks

    If the Express is acting as the router, you have to tell it to forward the port to your machine (port mapping).
    From Airport Utility help:
    Directing network traffic to a specific computer on your network
    To ensure that requests are properly routed to your web, AppleShare, or FTP server, or a specific computer on your network, you need to establish a permanent IP address for the server or computer, and provide “inbound port mapping” information to the AirPort Base Station or Time Capsule.
    To set up inbound port mapping:
    Open AirPort Utility, located in the Utilities folder in the Applications folder on a computer using Mac OS X, and in Start > All Programs > AirPort on a computer using Windows.
    Select the device you’re setting up, and then click Manual Setup. Enter the password if necessary.
    Click Advanced in the toolbar, and then click Port Mapping.
    Click the Add button and choose a service from the Service pop-up menu (for example, Personal File Sharing).
    Enter the IP address of the server in the Private IP Address field.
    To use port mapping, you must configure TCP/IP manually on the computer that is running the web, AppleShare, or FTP server.
    For more information about port mapping, see the document “Designing AirPort Networks Using AirPort Utility,” located at www.apple.com/support/airport.
    I assume you enabled web serving through the Sharing pane of System Preferences so that the firewall will be automatically configured appropriately? If not, you'd need to take care of that.
    Don't forget to make sure the machine is set to never sleep.
    - cfr

  • Browse Files on a Web Server

    Hello,
    How could I start writing an applet for viewing files on my web server? I looked around the forum and on the net but couldn't find anything very helpful. Any resources or links are also much welcome.
    Thanks,
    LD

    Thanks for your reply Andy,
    All I want to do now is have something user friendly so that they could browse a tree folder and download some files on my web server. I don't really know if I should stick with Java or opt out and go try using JavaScript or other scripts - what's your view on this?
    I wrote some code in Java that creates a folder tree, starting from the folder where the applet is placed. Then I would have a table showing all the files etc...In my IDE it works fine but on the server it either doesn't show anything or complains about security issues (I tried different methods).
    (My web server is just a common commercial web server. When there's no index.html on a particular folder on the server and I locate it in my web browser, it does show a listing of all that is in there.)
    Here's my code:
    Thanks for your help,
    LD
    import java.applet.Applet;
    import java.awt.BorderLayout;
    import java.io.File;
    import java.io.FileFilter;
    import javax.swing.JOptionPane;
    import javax.swing.JScrollPane;
    import javax.swing.JTree;
    import javax.swing.UIManager;
    import javax.swing.tree.DefaultMutableTreeNode;
    public class WebServerFileBrowser extends Applet
        private JTree dirTree;
        private JScrollPane treeSPane;
        String root;
        /** Initializes the applet WebServerFileBrowser */
        public void init()
            try {
                java.awt.EventQueue.invokeAndWait(new Runnable()
                    public void run()
                        // Set applet's look and feel as the system's
                        try {
                            UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
                        } catch (Exception ex) {
                            ex.printStackTrace();
                        //End of settings    
                        initComponents();
            } catch (Exception ex) {
                ex.printStackTrace();
        private void populateDirTree()
    //        System.out.println(getCodeBase());
    //        root = "D:\\TestDir";       
            try {
                // Getting the root directory which is the directory where the applet is located
                File rootDir = new File (".");
                root = rootDir.getCanonicalPath();
                File topDir = new File(root); // The top/root directory
                DefaultMutableTreeNode treeTop = new DefaultMutableTreeNode(new Folder(topDir)); // The top node of the directory tree
                growDirTreeNodes(treeTop, topDir);
                dirTree = new JTree(treeTop); // After the directory tree nodes are fully grown, add them into the directory tree
            } catch (Exception ex) {
                ex.printStackTrace();
            JOptionPane.showMessageDialog(this, root);
        // Implementing the concept of recurrence, the directory tree is grown top down
        private void growDirTreeNodes(DefaultMutableTreeNode node, File dir)
            File[] dirs = getDirList(dir);
            for (int i = 0; i < dirs.length; i++) {
                node.add(new DefaultMutableTreeNode(new Folder(dirs)));
    growDirTreeNodes(((DefaultMutableTreeNode) node.getChildAt(i)), dirs[i]);
    // This method is used to return an array of child directories that are in a parent directory
    private File[] getDirList(File dir)
    File[] dirs = dir.listFiles(new FileFilter()
    public boolean accept(File file)
    return file.isDirectory();
    return dirs;
    private void initComponents()
    setLayout(new BorderLayout());
    populateDirTree();
    treeSPane = new JScrollPane(dirTree);
    add(treeSPane);
    * This sub class represents a folder which is equivalent to a directory
    * Main reason for this class' existence is to override the toString() method
    * so that when added into the dirTree, the nodes show the name of the folder
    * and not the full path of that directory
    class Folder
    private String name;
    private File dir;
    public Folder(File dir)
    this.dir = dir;
    name = dir.getName();
    public String getName()
    return name;
    public File getDir()
    return dir;
    public String toString()
    return name;

Maybe you are looking for