How to Port Forward a Modem

Joshua

New member
I have a Modem in my house that has four Ethernet ports. And i have A router connected to one and my computer server running Ubuntu 12.04 LTS x86 (not sure this matters). anyway id like to connect to my server outside of my house but i can only find guides on how to set it up using a router well mine isnt connected to my router so i dunno what to do seeing how everything has the same public IP. So id like to know if i can forward ports on my modem or get my server to work with this or not.
Also the server does have internet so that's working.
 
Last edited by a moderator:
Could you not just use File zilla or other FTP programs. You can how ever do this by going through your default gateway (192.168.1.254) put that in your browser and try and find the port forwarding section and there you should be able to edit the ports =D
 
You would need some kind of VPN functionality to remotely access your home network. Your default gateway may not be 192.168.1.254. To find out what your default gateway is, open the command prompt and type: ipconfig /all. This should list the IP address of your default gateway + other information. Once you have the IP address, type it into any browser and you will be redirected to the login page for your router admin panel. If you have never accessed the admin panel before, your username and password will be the default ones provided to you by your ISP (Check your router - the username and password will be somewhere on your router).

Login to the admin panel and you will find a section labelled "port forwarding." If you have FTP setup on your server, forward the relevant port to the local IP address of your server.
 
Usually when a modem has more than one lan port it has a router built in. Explain your setup a little better.
 
I've got a feeling modem = router and router = switch in this case? Like you say if you have a ISP modem with more than one LAN port it will have to have a DHCP server built in?

Not sure, my network knowledge is limited, hmmblah is a network god though
 
As has been suggested your "modem" must have some routing functionality or all your home PC's would be sitting on the same subnet as your modem. Effectively you would be getting n external network addresses.
Almost all modem/routers have port forwarding capability and depending on your requirement (service/application/port) you should be able to manage multiple port forwards to different machines.
Usually the setup is something akin to forward all traffic on port x to IP address y.
The other side of your question is external access, and this comes down to a dns management programme that will update a common name to your leased isp ip.
I use dyndns but I think they've pulled the free service option, there are others out there. Essentially what this will do is give your isp assigned IP a meaningful name which in the event of release/renew will be updated to point to the new IP.
e.g. you can make xxx.xxx.xxx.xxx <- isp assigned ip = joshua.oc3dmyhouse.org

Then dependant on the application/port you want to access you just point it to the dns name and the resolution is done regardless of what your assigned IP might be.
I use this for RDP, FTP, Minecraft Server, etc etc without any problems your control layer is within the port forwarding. I would also say that you could host multiple instances of the same application on different hosts providing you manage your ports closely. So you could have 4 FTP's running which by default will all want to use port 21 but if you set them to 21, 121, 1021, 10021 then you'll have no issues hitting the right server.
I'm not sure if any of this has made sense, networking at this level isn't the black art people sometimes think it is.

Cheers
Lee
 
Hey i figured it out hmmblah thanks i didn't know that modems could have routers built in so i just did it the same as id do a router it ended up working after that. I just directly hooked up to my ubee modem and signed in after that it was pretty much straight forward.
 
Back
Top