Jump to content

I was going to setup a simple FTP Server on windows 10. but i cant/dont want to change my Main routers IP. So i setup a router Through a WAN plug and i can access the internet through it. so i wanted to know if i set a static IP on this router and not my main, will it allow me to access the server through the internet or no.

 

WAN.bmp

Intel G4560

EVGA 1050Ti OC'd to 1895Mhz Core

4GB Avexir core series DDR4-2400Mhz

16GB HyperX DDR4-2400Mhz

 

Link to comment
https://linustechtips.com/topic/752883-static-ip/
Share on other sites

Link to post
Share on other sites

You could set up Dynamic DNS if you don't want to change the WAN IP on your main router or if your ISP uses DHCP for WAN IP assignment (if your ISP even allows you to change the IP, which most do not without asking them first). 

 

As it is right now, you have a local network inside of a local network, so you cannot connect to the server without messing around with some needlessly complicated port forwarding settings. The public/WAN IP of the main router is still the one the devices outside of the network will see, so this setup doesn't change which IP address you'd need to connect to. To connect to the second router, a connection would have to be made to the first router beforehand, then directed to the second router, which means more port forwarding rules and double NAT, which isn't a great setup. 

 

Link to comment
https://linustechtips.com/topic/752883-static-ip/#findComment-9525802
Share on other sites

Link to post
Share on other sites

14 minutes ago, Oshino Shinobu said:

You could set up Dynamic DNS if you don't want to change the WAN IP on your main router (if your ISP even allows you to change the IP, which most do not without asking them first). 

 

As it is right now, you have a local network inside of a local network, so you cannot connect to the server without messing around with some needlessly complicated port forwarding settings. The public/WAN IP of the main router is still the one the devices outside of the network will see, so this setup doesn't change which IP address you'd need to connect to. 

 

 

Er. i think i said something the wrong way. i dont want to set a Static IP And DNS on my MAIN Router.so i plugged a different router into it(So yeah local inside a local). so i CANT Set a static IP On the second router and use it to setup a server?

Intel G4560

EVGA 1050Ti OC'd to 1895Mhz Core

4GB Avexir core series DDR4-2400Mhz

16GB HyperX DDR4-2400Mhz

 

Link to comment
https://linustechtips.com/topic/752883-static-ip/#findComment-9525814
Share on other sites

Link to post
Share on other sites

2 minutes ago, Johnathon said:

Er. i think i said something the wrong way. i dont want to set a Static IP And DNS on my MAIN Router.so i plugged a different router into it(So yeah local inside a local). so i CANT Set a static IP On the second router and use it to setup a server?

Not if you want to access the sever from outside the network. Everything outside the network will see your main router. The second router is considered part of your local network by everything outside the network, then everything connected to that router is in another local network. It's not a good setup and won't work for accessing your server outside of your network without devices going through your main router first. As it requires going through your main router either way, it is better to not use the second router and set everything up on the first router, as you're going to have to do so anyway. 

Link to comment
https://linustechtips.com/topic/752883-static-ip/#findComment-9525832
Share on other sites

Link to post
Share on other sites

14 minutes ago, Oshino Shinobu said:

Not if you want to access the sever from outside the network. Everything outside the network will see your main router. The second router is considered part of your local network by everything outside the network, then everything connected to that router is in another local network. It's not a good setup and won't work for accessing your server outside of your network without devices going through your main router first. As it requires going through your main router either way, it is better to not use the second router and set everything up on the first router, as you're going to have to do so anyway. 

RIP. How permafucked will my main router be if i set the DNS/IP To static. and what should i set it as.

Intel G4560

EVGA 1050Ti OC'd to 1895Mhz Core

4GB Avexir core series DDR4-2400Mhz

16GB HyperX DDR4-2400Mhz

 

Link to comment
https://linustechtips.com/topic/752883-static-ip/#findComment-9525840
Share on other sites

Link to post
Share on other sites

15 minutes ago, Johnathon said:

RIP. How permafucked will my main router be if i set the DNS/IP To static. and what should i set it as.

Well, your WAN IP is managed by your ISP, so you can't just change it yourself. The local IP of your router can be changed if you want, but there's no point for what you want to do. Your router's local IP will be static (likely something like 192.168.0.1, which is pretty standard for class C home networks) and it will act as a DHCP server (unless you have a dedicated DHCP server, but I doubt you do or you wouldn't be asking this question) to give out IP addresses to each of your devices. 

 

What I mentioned earlier, Dynamic DNS, is a service where you configure your router to let your Dynamic DNS (DDNS) provide know if there your WAN IP changes (this can happen with ISPs that use DHCP or rotate IP addresses). DDNS essentially allows you to replace your public IP with a URL (something like Johnathon.dyn.com) so you can connect using the URL, which will always point to the correct IP address thanks to your router updating the DNS entry. Using this method, you're not actually changing the IP address but just having a URL point to whatever your IP address is at the time. 

 

I would also advise not using normal FTP but rather using SFTP as everything can operate over port 22 (or whatever port really, most SFTP clients allow you to specify) rather than having to deal with the pain that FTP is with NAT and firewalls. 

 

I would advise you read up on SFTP and port forwarding if you're not sure how they work. Opening common ports and using unencrypted protocols like FTP can open up fairly large security holes in your network if you don't know what you're doing. 

Link to comment
https://linustechtips.com/topic/752883-static-ip/#findComment-9525895
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×