Jump to content

Welcome to Geeks to Go - Register now for FREE

Need help with your computer or device? Want to learn new tech skills? You're in the right place!
Geeks to Go is a friendly community of tech experts who can solve any problem you have. Just create a free account and post your question. Our volunteers will reply quickly and guide you through the steps. Don't let tech troubles stop you. Join Geeks to Go now and get the support you need!

How it Works Create Account
Photo

Port Forwarding With Router


  • Please log in to reply

#1
magix

magix

    Member

  • Member
  • PipPip
  • 10 posts
Hi, so this is my problem. I'm trying to get a reverse proxy program working (so that I make the reverse proxy server, and when a friend executes that server it connects to my machine and to the reverse proxy client) but I'm having troubles with the port forwarding. Basically this is my setup:

2 Local Computers > D-Link Ethernet Router > ADSL VOIP Modem (plugged into the WAN port of the router) > Phone Socket

If I connect my two computers directly to my modem, and take the router out of the equation, and forward the port on the modem, the reverse proxy server can connect to my client, and canyouseeme sees the port (port 19999) as open...

But if I have my computer plugged into the router, and forward the port on the router AND the modem, canyouseeme sees the port as closed and the server doesn't connect to my computer... Could someone please explain to me how I'm supposed to port forward if I have a router in the equation (do I need to forward it on the router AND the modem, just the modem, or just the router, and why?)

The IP address of my modem is 192.168.1.1
Subnet mask: 255.255.255.0

The ip address of the router is 192.168.0.1
Subnet mask: 255.255.255.0
DHCP server enabled

My computers IP address: 192.168.0.2
My computers default gateway: 192.168.0.1
DNS: 192.168.0.1
DHCP: 192.168.0.1

Does it matter that they're on different IP ranges?
Is it possible to set it up so that my router is using the same range as the modem, and still get internet connectivity? I tried... but I couldn't figure out how to get it to work. It wouldn't let me access the internet.

I think that's everything... Any help would be GREAT! Thanks a lot guys!
  • 0

Advertisements


#2
Dan

Dan

    Trusted Tech

  • Retired Staff
  • 1,771 posts
Hey magix,

I would suggest that you try disabling one of the firewalls; you don't need a firewall on your router and modem. One is more than enough. So, try disabling the firewall within your router (if possible).

ould someone please explain to me how I'm supposed to port forward if I have a router in the equation (do I need to forward it on the router AND the modem, just the modem, or just the router, and why?)

You would need to forward it on both your modem and router. However, in the modem, are you forwarding the port to your router's IP, or your computers IP?

Does it matter that they're on different IP ranges?

No, it shouldn't.

- Dan
  • 0

#3
magix

magix

    Member

  • Topic Starter
  • Member
  • PipPip
  • 10 posts

Hey magix,

I would suggest that you try disabling one of the firewalls; you don't need a firewall on your router and modem. One is more than enough. So, try disabling the firewall within your router (if possible).

ould someone please explain to me how I'm supposed to port forward if I have a router in the equation (do I need to forward it on the router AND the modem, just the modem, or just the router, and why?)

You would need to forward it on both your modem and router. However, in the modem, are you forwarding the port to your router's IP, or your computers IP?

Does it matter that they're on different IP ranges?

No, it shouldn't.

- Dan


Hi there Dan, thanks for getting back to me.

I'm forwarding to MY IP address (not my routers) in my modem's port forwarding table. Also, is it possible to disable my modems firewall instead, would that not be a better solution? My modems firewall lacks features, where as my routers firewall has a number of great features I would like to use such as the ability to block certain packets from certain IPs or ranges (something my modem lacks).

Thanks.
  • 0

#4
Dan

Dan

    Trusted Tech

  • Retired Staff
  • 1,771 posts

Also, is it possible to disable my modems firewall instead, would that not be a better solution? My modems firewall lacks features, where as my routers firewall has a number of great features I would like to use such as the ability to block certain packets from certain IPs or ranges (something my modem lacks).

Certainly. It doesn't matter which one you decide to disable; it really depends on whether or not you can disable it. If you can post the exact make and model of your modem, I may be able to find something in regards to it; but if you login to your modem, you will hopefully see a setting somewhere which will allow you to disable it.
  • 0

#5
Dan

Dan

    Trusted Tech

  • Retired Staff
  • 1,771 posts

I'm forwarding to MY IP address (not my routers) in my modem's port forwarding table.

If you can't find any way to disable your modems firewall, try forwarding the port to your router's IP, instead of your computers IP -- ensure that when forwarding the port from inside your router, that you forward it to your computer's IP.

So:
Modem (port) --> Router (IP).
Router (port) --> Computer (IP).

- Dan
  • 0

#6
magix

magix

    Member

  • Topic Starter
  • Member
  • PipPip
  • 10 posts

I'm forwarding to MY IP address (not my routers) in my modem's port forwarding table.

If you can't find any way to disable your modems firewall, try forwarding the port to your router's IP, instead of your computers IP -- ensure that when forwarding the port from inside your router, that you forward it to your computer's IP.

So:
Modem (port) --> Router (IP).
Router (port) --> Computer (IP).

- Dan


Hey, unfortunately there's no way to disable my firewall on my modem, but I checked the firewall on both modem and router and they have no entries and therefore aren't blocking any traffic. Now I can't even seem to get the internet to work... I can ping the modem when I'm behind the router but no net.

I tried the forwarding like you said but that didn't seem to work... I took some screenshots of my modem and router (I tried to forward from my modem to my router):

Modem:

The red circle is the entry I made.

http://img26.imagesh...17/screen1d.jpg

Router:

http://img26.imagesh...51/screen2u.jpg
http://img26.imagesh.../screen3ida.jpg

Thanks Dan!
  • 0

#7
Dan

Dan

    Trusted Tech

  • Retired Staff
  • 1,771 posts
Hey magix,

Is there any reason why you have posted the Routing Table picture? This isn't where you should be trying to forward ports; is this where you have been attempting to do so?

Looking at that picture, I would guess that port-forwarding would be under Advanced > Virtual Server (it may not be called Virtual Server, could be something else, like Firewall, Port Forwarding, etc.).

Perhaps you posted that photo for a different reason, and I'm simply jumping to conclusions?

Now I can't even seem to get the internet to work... I can ping the modem when I'm behind the router but no net.

When did this start happening? You should remove the Routing Table entry that you created, as it is routing your traffic to .. no where (0.0.0.0) :)

Like I said, I may be misinterpreting what you have posted, and if that's the case, then please correct me.
- Dan
  • 0

#8
magix

magix

    Member

  • Topic Starter
  • Member
  • PipPip
  • 10 posts

Hey magix,

Is there any reason why you have posted the Routing Table picture? This isn't where you should be trying to forward ports; is this where you have been attempting to do so?

Looking at that picture, I would guess that port-forwarding would be under Advanced > Virtual Server (it may not be called Virtual Server, could be something else, like Firewall, Port Forwarding, etc.).

Perhaps you posted that photo for a different reason, and I'm simply jumping to conclusions?

Now I can't even seem to get the internet to work... I can ping the modem when I'm behind the router but no net.

When did this start happening? You should remove the Routing Table entry that you created, as it is routing your traffic to .. no where (0.0.0.0) :)

Like I said, I may be misinterpreting what you have posted, and if that's the case, then please correct me.
- Dan



It was an attempt to forward the ports from my ADSL exchange > Modem > Router > Computer, that's why I posted the pic. You would be correct though, port forwarding is in Advanced > Virtual Server, but the problem isn't with the way that I'm forwarding, as I'm 100% certain I'm doing it correctly.

It just started happening... I have no idea why. Probably a setting I changed or something, but now I can't seem to get the internet to work. But yeah, the whole setup seems to be screwed.
  • 0

#9
Dan

Dan

    Trusted Tech

  • Retired Staff
  • 1,771 posts
Well, I think the first step will be to get your Internet connection working again.

It just started happening... I have no idea why. Probably a setting I changed or something, but now I can't seem to get the internet to work. But yeah, the whole setup seems to be screwed.

When you plug your machine directly into the modem, do you get an Internet connection?

When you aren't receiving an Internet connection, please do the following:
  • Click Start, select Run, type cmd and press OK
  • In the new command prompt window, type ipconfig /all > C:\ipconfig.txt
  • Navigate to your C: drive and open the text file ipconfig.txt -- please copy/paste the contents of this file into your next response.
If the issue only occurs when you plug the router into the mix, you could try resetting the router to factory defaults and starting from scratch.
  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP