#FLASK API connection issues after getting a new router

1 messages · Page 1 of 1 (latest)

urban moat
#

Currently i run a discord bot on a laptop which accesses endpoints on my main pc where i host my flask server. I got a new router today and cant for the life of me work out what is wrong. I have tried a lot of things but cant work out what is wrong. I am now at the point where i am struggling to just ping the laptop from my main pc on my local network so any advice or tips much appreciated.

I am going to sleep now so hopefully I have some suggestions when I wake up. Thanks in advance

obsidian stump
#

Are you trying to access it locally or from outside? If it's the latter, did you forward the port? Also, make sure you got the right address IP, they are dynamic, which means they can change; if you changed your router it 100% changed.

If you don't want your IP to change I recommend that you assign a static IP to your server.

urban moat
obsidian stump
urban moat
#

So I’ve been trying to ping the ipv4 ip over the local network 192.168.0.33 for my main pc and 192.168.0.27 for my laptop and I’m getting request timeout when I try this

#

Would a new router have different firewall settings? I’m not too clued up on networking stuff so trying to learn

#

I’ve done a dns flush to no avail

obsidian stump
#

Are you sure those are the right ips? Are you using the right port? Are you getting any information on your server? Have you tried to look at your connection logs?

obsidian stump
#

Well....

urban moat
#

ik in that ss i am pinging wrong ip

obsidian stump
#

If it's still doesn't work you can try those.

obsidian stump
urban moat
#

this is the laptop ip

#

then when i ping from my pc

#

i have already tried that site

obsidian stump
#

Just to be clear, those are 2 different computer right? Both are connected to your router too?

urban moat
#

yes

#

i think actually

#

i have it working

#

on private network turned off on both

#

it pings other laptop

#

but laptop to pc isnt working

#

might need to do some tinkering

#

i gtg to work so will test when i get home

urban moat
#

Resolved was due to firewall