Help Sending UDP Data

lboucher asked 2 years ago

Hi All

So I thought I understood networking but I am now realizeing I am missing a piece of the puzzel.

So my goal was to write some software that will run somewhere out in the vast internet and send UDP packets to my home computer.

So I am sending data to the IP shown on whatismyip.com and I also set up port forwarding on my router. In general this has worked for alot of my testing. Then I release this to someone else and it is not working for them. While debugging I realized I cannot ping my home IP from my website (AKA ssh into my website and try to ping 174.49.247.xxx).

Looking at my Router Status page i see this.

Login Type: Automatic Configuration - DHCP
IP Address: 174.49.247.xxx
Subnet Mask: 255.255.xxx.x
Default Gateway: 174.49.xxx.xxx

From my website I can ping the default Gateway 174.49.xxx.xxx

Is my ISP setting up another NAT between me home computer and the Internet. AKA NAT 1 = my router, NAT two = 174.49.xxx.xxx?

If so, how in the world do I get UDP data thru that second NAT??

Thanks
Lucas

1 Answers
wimiadmin Staff answered 2 years ago

Hi Lucas,

Thanks for your question.

I've edited the IP addresses you've posted so they don't get slammed from folks trying to scan them.

Some ISPs will block port 80 so you can't host a website out of your home without having to upgrade to a business account.

With that being said, most will change the port in the hosting software to listen on port 8080 and then forward the traffic to that port.

Not being able to ping your IP is normal....this is a security measure....if your IP doesn't respond to pings, a hacker thinks it's offline and makes no further attempts.

Give the 8080 a shot and see if that works.

Know the answer? Login or sign up for an account to answer this question.
Sign Up