U

Visitor

 • 

3 Messages

Monday, July 18th, 2022 7:28 PM

Closed

setup port forwarding for RDP

Hello,

I am having issues setting up port forwarding to be able to RDP into my PC from another device outside my network.  

Bear with me as there is a little back story to this...

My home PC was connected to the Xfinity router directly via ethernet cable.  I previously had Verizon and the same wired connection with a successful port forwarding for RDP.  However I couldn't seem to get it working correctly after switching to Xfinity.  It "appeared" I set up the proper port forwarding rules in the xfinity app, selecting my home PC device, but still couldn't connect to RDP from outside my home network.  

In trying to troubleshoot that, I assigned a static IP of 10.0.0.120 to my home PC.  Connection to the internet was fine and everything else working with this static IP and then gave up on working on the port forwarding for RDP for a bit.  I then ran into completely different issue where even with a wired connection where it would randomly drop stating Ethernet cable was unplugged.  LED lights on both the router and NIC indicated it was connected but my PC just couldn't actually connect.  

I then reverted to breaking out my old Verizon router.  I connected the same cable to the Verizon router and it connected successfully.  I still obviously had no internet through the verizon router so I then bridged the Xfinity router to the Verizon router via Ethernet cable.  There was no need for any advanced configuration as the simple plug and play worked and my PC was now connected to the internet again.

 - PC -> Verizon router -> Xfinity Router -> Internet

Since I had already successfully setup port forwarding on the Verizon router I thought I could now try to just setup port forwarding again on the Xfinity router and set it up to point to the Verizon router.  The Verizon router would then forward it again to my PC.

Here is my issue now.  I deleted all previous port forward rules and started over.  I selected "Wireless Broadband Router" as the device and set the proper port:

After the successful creation, when viewing the details of this it states a "Reserved IP Address" of 10.0.0.120

 - The actual IP of this Verizon router is 10.0.0.41 though:

We can see it has the 10.0.0.41 IP address:
When I try to RDP from outside my network it forwards to IP .120 which does not exist in my home network.  I need this to forward to .41 but whatever I do it will always state "Reserved IP Address" of .120 for the "Wireless Broadband Router" device.
I deleted all non connected devices from the router list (including the old direct connection of my PC) and tried to set up port forwarding again but it keeps stating IP .120
I deleted all port forwarding rules again and tried setting it up for a different device just as a test.  For this rule it then stated the correct IP of that device in the "Reserved IP Address".
 - I couldn't actually test if the RDP worked for that device as it was a Mac and haven't really figured out how to RDP into a non Windows device.
So my question is... Why is the "Reserved IP Address" being set as an IP of .120 when the actual IP is .41? and how do I correct this?
Thanks

Problem Solver

 • 

1.5K Messages

2 years ago

Your Xfinity gateway is not in bridge mode if you are getting a 10.0.0.x address on your Verizon router.  Your gateway is still running a dhcp server.  If bridge mode was working on the Xfinity gateway, you'd get the external public IP address on the Verizon router -- that's IF you can use an Ethernet port on it for WAN.   

What you are currently doing with it is a "double nat".  You can do that with a regular Ethernet router, I'm just not sure of how your Verizon router works and if it's expecting the WAN to be a cell link.  With a double nat, you'd have to create a port forward on the Xfinity gateway to point to your other Ethernet router, then another rule on the Ethernet router to point to your PC.  That's a bit of a convoluted mess unless it's really intentional, and you'd have to look at the manual of your Verizon router to see if it's even possible to use the Ethernet ports that way. I would guess not.

Likely, the Verizon is just acting as a switch right now since your gateway appears to not be in bridge mode.  Traffic is just going across the switch and has nothing to do with your Verizon port forward rules.  Possibly, you've got two dhcp servers facing each other.  That's not good.  Your picture changes:

        PC  -->  

                   | ---> Xfinity --> Internet

Verizon -->

If your goal is a port forward, pull the Verizon out.  A real common problem with Xfinity gateways from users here are their port forwards don't work (other settings too including setting bridge mode).  Why?  Dunno.  The app is supposedly supposed to talk to a backend server.....and then those settings are supposed to.....somehow....get pushed to your gateway.  But then, when it doesn't work, people are stuck.

Nobody seems to have a good workaround for either resetting the app, the gateway, or both, or has come up with a procedure to get it working again and Xfinity isn't talking.  Perhaps they have to stomp on the database from their end when it gets wrapped around the axle.  3rd party gateways don't have this issue.  You just change the settings from a local internal web interface and it's done.

You might have to go through the Xfinity chat to get some help with it.

By the way.  RDP directly exposed to the internet is a really bad idea.  Microsoft doesn't recommend it and warns about it.  IT people just cringe.  You're asking for trouble.  Run a VPN server yourself instead.  Both Wireguard and OpnVPN are free and will offer at least "some" protection for an open port.  VPN in from the outside, then you can access RDP on your windoz box.

(edited)

Visitor

 • 

3 Messages

@flatlander3​ 

Thank you for the quick response.  in response to a few of your statements:

"Your Xfinity gateway is not in bridge mode if you are getting a 10.0.0.x address on your Verizon router.  Your gateway is still running a dhcp server."

 - Yes you are correct.  I just used the wrong terminology in my initial response.  My Xfinity router and every thing else directly connected to this is on the 10.x.x.x.x network

 - This includes my Verizon router however my Verizon router is pushing the 192.168.x.x network to anything connected directly to that (currently only my home PC).

"With a double nat, you'd have to create a port forward on the Xfinity gateway to point to your other Ethernet router, then another rule on the Ethernet router to point to your PC. "

 - This is essentially what I am "trying" to accomplish, but even with the proper forwarding rules in place on both devices I am still running into the same issues I was having from when I didn't even have the Verizon router in place.

 - It apereas the forwarding rules are just not pushing correctly.  

If the device I am trying to RDP FROM is on the same network (the 10.x.x.x) I can successfully RDP by two methods.  

 - I can connect via IP of 10.0.0.41 (technically now .120 since I successfully changed the verizon IP to that), then that just forwards the RDP port to my PC as configured on that device

 - I can also connect via IP address of my actual PC (192.x.x.x.x) which also connects directly from the Verizon device.

To my understanding this configuration (from the local network) is essentially just bypassing any rules set on the Xfinity router as the request is going directly to the Verizon router ("switch" as I guess its technically configured as now).

The only reason I introduced the Verizon router back into the picture was the completely separate issue of even with a direct wired connection from PC to Xfinity router, I was getting a "network cable unplugged" problem.  For some reason Xfinity did not like the connection to my PC even if directly wired (Verizon device had 0 issues with this).  

What I did since my last post was assign the Verizon device a static IP of .120 as the forwarding rules stated it would use.  I can confirm the Verizon device is now using 10.0.0.120 from both the Xfinity router app and local interface (10.0.0.1), as well as Verizon interface (which BTW can now be accessed by both 192.168.1.1 and 10.0.0.120).

I suppose this issue is back to where you stated it's a common problem with Xfinity not really accepting any port forwarding rules (and other advanced features).    

 - I am trying my best NOT to reset the Xfinity device to factory settings as there are too many devices connected at the moment.  I suppose all that would really be needed is to just make sure I set the SSID and wifi password back to what is currently is and all "should" reconnect, right?  There are no other custom rules set besides what I am "trying" to setup for RDP.

And also, I do completely understand the security issues with RDP.  I only use it (enable it) during short periods of time when needed.  Its usually disabled when not needed.  If I can actually get it working correctly I may even consider changing the RDP listening port on my PC to some random port just so its not so obviously "open"

 - Another reason for this post is that just for sake of argument this "should" be working and it bothers me until I can get it successfully working, security issues or not.

Let me know any additional thoughts.

Thanks

Problem Solver

 • 

1.5K Messages

2 years ago

Well that was odd.  Looks like the bot ate my last post so I'll try it again.  Perhaps you'll get the same answer twice.  Perhaps I said a bad word and it's just blocked.

First, you've got two battling DHCP servers active on different subnets without VLAN routing capability.  This is going to cause all kinds of issues like arp storms, network config issues, and state table problems.   It's not helpful.  It's likely to cause future issues.  Ditch the Verizon.  Set the laptop to DHCP and reboot it to clear out the arp and state tables.

The Ethernet problem is either going to be a bad gateway port, crossover cable auto-mdix swapping pairs constantly, or auto-speed bouncing constantly.  You could verify that with an oscilloscope, but it's likely just a marginal cable.   If that doesn't work, try a different port on the gateway.  It's less likely it's the laptop.  I've seen very few fail.  Gateway might have flaky magnetics, cost reduced parts that don't work or a bad layout.  My guess is Xfinity/Technicolor isn't spending money on parts in the first place (or hardware engineering, or QA, or product management, or obviously documentation......).

For your port forward error, there's some debate if you can set a port forward rule for a computer/device with a static IP address.  I don't think you can anymore.  You have to be able to see the device in the app, and they're trying to enforce some kind of speed tier and number of devices thing, so it's probably part of their undocumented 'marketing crippleware'.  I don't think there's DHCP reservation either now these days, but perhaps the port forward rule sort of does that.  You are paying $14/month to rent a configuration problem, buggy hardware, and a buggy app to run it with questionable security and crippled functionality.

Start out by clearing out anything you did with the app with port forwards and bridge mode (if you did that).  Wait a few minutes, then reboot the gateway.  Perhaps unplugging it, then letting it discharge for 30 seconds is a good idea too so it wipes out the volatile memory.  You are trying to do a clean state on buggy equipment. 

There must be a 'window of time' where the backend database is supposed to update the gateway config "somehow, by some means".  Maybe that only happens during boot, and sometimes doesn't work.  Xfinity isn't saying.  Perhaps you have to try it a few times in a row to actually get it to stick, and maybe there's a race condition with link up, then configuration load from server that doesn't work well.  If you got your Ethernet issue fixed, try to create the port forward again.  Wait a few minutes, then do the reboot/powercycle discharge thing again. 

If that still doesn't cut it, then you might have to factory default the gateway to get it back to a clean state.  If you can do that from the app, great.  Perhaps you can wipe out a munged backend server database at the same time that way, but I'm not seeing that as an option.  I'd look for it though.  Factory default is either holding the WPS button for 20-25 seconds, or some hardware versions  had a little button (toothpick hole).  I'd still do the power discharge thing again.

Then, after you set up your wifi again, try to see if you can create a rule again.  Then do the reboot thing again.  You are looking for a workaround to the "port forwarding not working" issue everyone else is posting about.

Could also be real helpful to others if you write down the steps you take on each attempt, and if you get it working, post the procedure that works -- If you get it working.  Or, you could just get a 3rd party approved gateway at wallyworld and be done with it.

Wireguard or OpnVPN will run on a windows box -- the same box you want RDP on.  Run it on just about any port you want.  Why that is 'better', is that to communicate with either server, you either have to have the key (wireguard) or with OpnVPN you need the HMAC key to even start a conversation, otherwise, the port appears to be 'filtered' to a port scan and a poor target to waste time on.  Then you don't have to worry about blowing holes in your firewall so much.

It's just a better approach than "I'll only do it for a little while".  Getting pwnd can take less than a second, and can happen with Zero user interaction.

*Oh, and I'll add good luck and cheers!!  You are now the entire Xfinity QA department!!

(edited)

Visitor

 • 

3 Messages

2 years ago

Well not really resolved, but gave up on it again for now.  

Had some new odd behavior. Logged in to my PC this morning and boom, no internet.  The only change was setting the static IP on the Verizon router.  It worked for HOURS yesterday after this change but something overnight now stopped it.  Perhaps it does take some time for some back end server to actually officially push the change to the Xfinity router (not buying that though as the settings "should" be directly on the router itself not some back end Xfinity server).  

As I had only minutes to log in to work, I tried excluding the Verizon router from the picture again and connected my PC directly to the Xfinity router again.  

They decided to start playing nice again as the wired connection was accepted this time and I had internet again.  I guarantee in a day or two Ill randomly get the same "network cable unplugged" error but with no changes.  

I removed all port forwarding rules and just sticking with a standard setup for the time being.  

On a side note, once I connected my PC directly back to the Xfinity router, the device was detected as "Wireless_Broadband_Router" instead of [PC name]. This was the same that the Verizon router was detected as.  It did give it a new DHCP IP .121.

 - Weird behavior but basically giving up on this as at least I have internet back (when theoretically it shouldn't have dropped in the first place)

Thanks for all advice so far though

Problem Solver

 • 

311 Messages

Thank you for your feedback, we would like to thank @flatlander3 for assisting the community on this matter.

 

@user_jb1718 if you require additional help please feel free to reach back out to us.

I no longer work for Comcast.

Problem Solver

 • 

1.5K Messages

2 years ago

OK, well at least do yourself a couple of favors if it's possible.  On the Verizon, see if there's a setting to disable routing or disable the DHCP server on it.  If you are going to try to use it as an unmanaged switch, try to make it an unmanaged switch, and seriously, try a different Ethernet cable.

I'm always surprised when I see millions of dollars worth of server equipment all connected with the cheapest cables you can buy from a bulk reseller.....

(edited)

forum icon

New to the Community?

Start Here