Cant connect to Flask web service, connection refused 127 0 0 1 is the localhost address and will only be reachable from the raspi In order to get access from your laptop open up the terminal on your raspi and try instead the ip from ifconfig should look something like 192 168 0 XX:5000 This assumes that they are both on the same local network