Smart/RG Router Config for running local web server

Web hosting discussion, programming, and shared and dedicated servers.
4 posts Page 1 of 1
by norwoodj » Tue May 29, 2018 3:20 pm
Has anyone trying configuring a Smart/RG router for running a local web server? Here is what I tried:

Under the Advanced Setup tab, I navigated to NAT-Virtual Servers. There is one existing virtual server using the eth4.1 WAN interface, internal port 16402. I tried adding a virtual server using the IPOE 0 0 35/ atm0.1 WAN interface on port 80. Oviously there is more to it than that.

I can access the server from inside my network, ie 192.168.42.XX, but if I use 'what's my ip address' and try to go to that address, I get this error:

You don't have permission to access /prime-home/control-panel/login on this server.

Can anyone offer some advice on how to set this up? I know I could use the personal web hosting that comes with my sonic account, but this is really meant to be a learning exercise. Any advice or links to documentation would be helpful and appreciated.

thanks,
John
by norwoodj » Tue May 29, 2018 5:08 pm
I have uncovered a clue as to what is happening, but I don't know what it means or if it's even relevant. To login to this router internally, I need to go to 192.168.42.1/admin and this will ask me to login using the wifi password. With the port forwarding setup I can get to the same login form if I type in my IP address followed by /admin (ie, xx.xx.xx.xx/admin). However, the admin username and password don't work. Does this extra information shed any new light?
by ngufra » Tue Jun 05, 2018 8:09 am
When you write "running a local web server" you mean running locally a server and having it accessed from the internet or access locally?

Here is what i typically do to run a web server:

On a computer,
install a web server. e.g. apache.
Ensure the firewall is set to accept connections.
Ensure the web server works locally.

On the router:
in DHCP page, ensure that the computer that is running the web server is always getting the same IP (based on its mac address) e.g. 192.168.1.2

in port forwarding, set redirection for tcp connection on port 80 (for http) or 443 (https) to the ip of the machine running web server (e.g. 192.168.1.2)

To test, use your neighbor connection or use your phone (disconnected from wifi so it uses data plan) and point the web browser to the ip of your sonic connection.

You can also get an account at dyndns or no-ip and install the updater on a computer (can be the same as the one running the web server) so you can view your web server at <yourname>.no-ip.com
by ryanrwggrant » Sun Oct 07, 2018 11:41 am
I have this same problem, please let me know if you found a fix
4 posts Page 1 of 1

Who is online

In total there are 5 users online :: 1 registered, 0 hidden and 4 guests (based on users active over the past 5 minutes)
Most users ever online was 422 on Sat May 26, 2012 5:28 am

Users browsing this forum: Bing [Bot] and 4 guests