Need help setting up my router

Cableguy

Expert
Licensed User
Longtime User
Hi guys, the title says it all...

I have tried to set the NAT...
I can reach the default apache webpage from the local network, but when I try to do it from internet by using my no-ip address, I get my routers default page...

my webserver to be will have the name "tugadroid.ddns.net", and my internal ip is set to 192.168.1.50:10000

I think I have a port calling issue(?)
 

inakigarm

Well-Known Member
Licensed User
Longtime User
You'll have to redirect Public IP and the ports involved to the private IP of your local server

Find your router's manual and look for port redirecting
 

Cableguy

Expert
Licensed User
Longtime User
I have no access to the manual!
 

inakigarm

Well-Known Member
Licensed User
Longtime User
Sure you can check the router model and google for configuration; do you know which is your router model ?
 

Cableguy

Expert
Licensed User
Longtime User
I have searched, and found info, but just can't get it to work!
The way I understand it, I set the TCP calls to port 8080 to go to my PI at 192.168.1.50, right? what is the default port of apache?
 

Ormente

Member
Licensed User
Longtime User
You may need to set DHCP first, to be sure your machine allways get the same (local) IP 192.168.1.50.
Then, you set a NAT rule to forward HTTP port 80 to your server machine on port 10000.
 

sorex

Expert
Licensed User
Longtime User
http's default is 80 but you wrote that you used 10000 so you should forward that 8080 to 10000 as @Ormente wrote earlier.
 

Cableguy

Expert
Licensed User
Longtime User
@DonManfred , i'll be home after 21h Paris time (GMT+1), is it OK for you?
 

Ormente

Member
Licensed User
Longtime User
@Cableguy If you use a BBox, here is how the settings looks in mine, for a server running on port 12345.
 

Attachments

  • DHCP.jpg
    DHCP.jpg
    20.1 KB · Views: 261
  • NAT.jpg
    NAT.jpg
    27.3 KB · Views: 238

Cableguy

Expert
Licensed User
Longtime User
Thanks, that helps... I think m'y issue is on the apache port...
Mater this evening I will try to run thé abmaterial démo from my RPI and see how that goes
 

HotShoe

Well-Known Member
Licensed User
Longtime User
Also be aware that depending on the router, you may have to set the server machine as a static IP (192.168.1.50) along with your port forwarding on the router to that address. Some routers will not do port forwarding on DHCP assigned IP addresses.

--- Jem
 

Cableguy

Expert
Licensed User
Longtime User
So, going back to basic info...
I set my raspi IP to be 192.168.1.50 in my router fixed IPs table.
The Pi is "fully" loaded with WebAdmin, Samba, MySQL, APACHE and MiniDNLA
ALL these services are running, although for the MiniDLNA folder to show up in my network I need to login to the PI... not sure why, but that's a different issue.
Tapping the PI's IP in the Address bar bring up the APACHE's default "It Works" page.
WebAdmin is accessed using 192.168.1.50:10000/session_login.cgi, and bypassing the lack of the certificate.
Apache default port still is 80, and I also installed the NoIP DUC onto the PI, and in my console I can see that the NoIP service sees the correct IP address.

So, Now all I have to do is route the requests from port 80, arriving at my router, to the PI Ip and port, Right?

So I set my NAT like this:

Name:Raspi (I guess its not important)
Protocols:TCP
Type: Port
External Port:8080 (Incoming requests?)
Destination IP:192.168.1.50 (My PI)
Destination Port:80 (The Port APACHE is set to listen?)

I am wondering if there is some service I still need to start from the PI side, or if its all just a matter of ports.
I am available for teamviewing although my band width is only 8MB
 
Last edited:

lemonisdead

Well-Known Member
Licensed User
Longtime User
External Port:8080 (Incoming requests?)
Yes this means that the connection should be done on port 8080 from the internet and following your settings, the requests will be routed to port 80 and to IP 192.168.1.50 inside your Lan

If Apache is running nothing else (apart security scripts or ntp or even something else you would need) should be started
 

Cableguy

Expert
Licensed User
Longtime User
so my settings are OK?
what am I missing?
 

lemonisdead

Well-Known Member
Licensed User
Longtime User
what am I missing
Nothing. It works. I can even say that you don't have a html file in your web folder. I can access the site but receive an error.


Edit: or a CHMOD on the folder where the files are located, perhaps ?
 
Last edited:

Cableguy

Expert
Licensed User
Longtime User
so there's something wrong with my apache's config!
I have created a simple index.html file, and placed it in my webroot folder, to wich apache should be pointing
I have one question, must the ":8080" always be set explicit?
 

lemonisdead

Well-Known Member
Licensed User
Longtime User
I have one question, must the ":8080" always be set explicit?
Yes because of your Nat rules. By default a server replies on port 80. So to access your server we have to specify the 8080 port. But you can change it.

Please check your web's folder rights. On VPS for example the user who launches Apache is www-data by default and it has some rights in /var/www

On the Pi perhaps it is root who launches the Apache. So perhaps you have to let us read or execute the folder. But I can't help since I have not any Pi for the moment
 

Cableguy

Expert
Licensed User
Longtime User
Thanks for this info, I'll look into it
 

lemonisdead

Well-Known Member
Licensed User
Longtime User
I am sorry just thought of that : you from inside the Lan can you still see the default page ?
 
Top