I just type in jazz music and play any playlist, I work better with something on, it's like my distracting thoughts are loud so I need something louder I know a few people who said they listened to white noise doing their dissertations, works for some.
I think there's a few app kind of things that will turn off your internet for a period of time? My local library doesn't have wifi so I always get a tonne of work done there.