7

I am starting a minecraft server for me and some friends.
Everything works as far as I can join and play in it when I use my internal ip (192.168.1.126), but I need to forward port 25565 so my friends can join and play when they use my 'public ip':25565.

For some reason this won't work and I feel like it is because of my home network.
We have a default router (default gateway 192.168.1.1 with dhcp enabled) and I have another router in my room (ip 192.168.1.2 with dhcp disabled).

I'm hosting the server on my desktop with ip 192.168.1.126.
I have tried to only forward port 25565 to my desktop on the default router.
Then I tried to forward the port on both routers to my desktop. And finally I tried to forward the port on the default router to my personal router(192.168.1.2) and then from that personal router to my desktop.

None of this worked and I am out of idea's if what I might be doing wrong.
Ill put 2 screenshots of both the router user interfaces so you can see how I tried.

Default router: default router

personal (access point) router: personal (access point) router

I hope anyone can help me with this and thanks in advance!

5 Answers5

7

If you only use the Linksys as a switch and access point, you shouldn't be setting it up as a router at all. Instead, connect the cable to the Cisco router to a LAN port of the Linksys, disable DHCP on the Linksys, and set up the wireless however you want it set up. There's no need to get into complexities of multiple subnets; consumer routers are perfectly capable of serving as just switch+AP, without using any of their router functions.

cpast
  • 2,513
3

Using 2 routers with one "behind" the other is fine, been doing it for years with no problems. Good if you want to keep your LAN and the main router's LAN separate. I always connect the secondary router's WAN port into one of the main router's LAN ports (or use the secondary router's wifi in "client" mode and connect to the main router via wifi, like any other client device).

But I have never used the same IP addresses for both networks. In your case, your internet's main/default router is 192.168.1.1, and it hands out addresses 192.168.1.xxx, so your router gets 192.168.1.2. (If I read the Q correctly).

Now the problem - your router's own LAN also uses addresses 192.168.1.xxx, and your computer is 192.168.1.126. That's causing problems with the main router using the same addresses.

If you changed your router's LAN to use 192.168.3.xxx addresses (for example), then changed your computer's address to "match" (i.e. 192.168.3.126) that should fix things. Probably the same effect as changing the subnet as Techie007 suggests.

After changing your router's LAN addresses, you can then

forward the port on the default router to my personal router(new IP) and then from that personal router to my desktop

as you last tried.

Xen2050
  • 14,391
1

The Linksys router needs to be set up in Bridge Mode.

On the Linksys:

  1. Select Setup> Basic Setup

  2. Find the Internet Setup field and set the Internet Connection Type to Bridge Mode

  3. Set the Router Address to Specify an IP address and enter the appropriate IP address, Subnet Mask, and Default Gateway for the Cisco router then click Save Settings

The Linksys should now be used as an access point and the Cisco router will take control of the router settings.

Note: Your LAN IP address may change, but you should be able to further control this through the Cisco router.

에이바
  • 1,346
0

I see you want two different networks but I see you have two routers that are probably the same network. 192.168.1.X usually has the default subnet mask of 255.255.255.0 and to keep it simple you might not want to change it. However, if your routers support it, you can try partial octet sub netting as show here.

The current problem may be that both routers know about their own 192.168.1.X network but don't know about the others.

I propose the following guide, the software may limit you from doing certain things and you may have to improvise.

Lets leave Router 1 (Default router) on the 192.168.1.X network. Connect the uplink port to your modem. At this point, test networking to make sure everything is working. Check port forwarding from the internet, make sure outgoing connections are okay.

Next we change the network on Router 2 (personal (access point) router) to 192.168.2.X and plug a cable from Router 1's Ethernet to Router 2's uplink. Assign an ip address to the uplink port on Router 2 like 192.168.1.40. Set up a rule on Router 1 to forward all 192.168.2.X traffic to 192.168.1.40.

Assuming the uplinks are already the default routes, that should be it. Can you ping it? why not?

ponsfonze
  • 504
0

You probably do not need a port forward, as long as there is only one computer on the network listening for that port.

What you need to do is open/allow the port through the firewall.

You will have to do this on both routers if the internal router is not in bridge mode.

I do not have a linksys handy to tell you the exact menu, but on the one I have now there are different menu's for port forwarding and port pass-through.

BAR
  • 429