[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Contiki 1.3 webserver?



On Mar 28, 4:05 pm, Rich (aiiad...@gmail.com) wrote:
> I have a netgear wireless router.  I have a "port forwarding/port triggering" menu..
>  # Service Name Start Port End Port Server IP Address
>   1 HTTP 80 80 192.168.1.3
> Is this the correct menu?  The contiki web server is at 192.168.1.3

Yes, this is the correct menu and you have defined the entry
correctly.

> there is no domain name, so how would I access the page from a remote
> computer?

You need to know the IP address of your router.
You can find this by asking a service to see what it thinks your IP
address is:

This site gave me the correct external IP address for my system
http://www.ip-adress.com/
This site was able to give more information about proxy servers that
may be in between and also gave me the correct internal IP address for
my machine.
http://whatismyipaddress.com/

> 192.168.1.3 (contiki webserver) is local, behind the DSL modem.  So
> that can't be the correct IP number.

It is the correct internal IP address and as confirmed above, it is
the correct entry for the port forwarding table entry.

>I tried setting up the router for port forwarding.  Now I'd like to find out what
>address to type on the remote machine to access the page

You need to give others a url that includes the External IP address of
your web server and the port that it is running on.

So, assuming the external address is a.b.c.d, the url would be
http://a.b.c.d
If you change the port external port in your port forwarding entry
then youd need to provide the url
http://a.b.c.d:<external port number>
If you change the internal port number then you would need to change
the port forwarding entry

depending on the webserver, they try to server a file called
"index.html" when a filename is not provided in the url. You may find
that the Contiki webserver does not serve this file automatically (I
don't know as I havent tried it) - in which case you would also need
to provide the name of the file that you want people to see first on
your site e.g.
http://a.b.c.d/index.html

Cheers,
Andrew