I used this tutorial to make my Raspberry 3 an access point. After following that, I can't connect to the internet—neither via Wi-Fi nor via cable.
With this tutorial when I see the DHCP status—it says failed—but when I make wlan0 up my Raspberry turns to an access point and give IP to my cell phone.
I need a VPN to connect to my internet and I don't have one on my Raspberry so I can't connect with cable.
I want to use my Raspberry as Picroft so I need Internet. so I need a way to switch between these modes. Can someone help me?
Update from the comments:
The RPi is an access point. To this access point I can connect to its wifi for example with my cell phone.
The RPi is connected with an ethernet cable to my pc windows 10 that get wifi internet from a modem. the modem is dhcp that give 192.168.1.114 ip to my pc. Before i connect pi to PC with cable it gives IP to my phone but the pi and phone both didn't have internet.
On the RPi is a VPN client running that should connect to a VPN server somewhere in the internet but i don't have internet on my RPi so i can't make a pi VPN.
My RPi IP before turning it into access point was 192.168.1.115. but in tutoral i use a static ip and the static ip of Rpi is 192.168.42.1 an gives ip to my phone and other devices in range of 192.168.42.10 to 50