Connect to WP on RPI from Internet with IP
-
Hi all,
I am trying to connect to a wordpress blog that is running on a RaspberryPi from the internet. I don’t yet have a domain or a dyndns service. From my admittedly basic understanding of the internet this should be possible regardless. (I understand that as soon as the ISP changes my ip address i have to connect to a new one but this is just a test setup) I have installed a typical lamp stack following one of the many identical tutorials and I can reach the wordpress site from the local network using http:my.local.ip.address
I have configured port forwarding in the router of port 80 to the static local raspberry IP address.
(I think portforwarding works because when I call something like this https://my.global.ip.adress/somemadeupsubdir I get a Not found message generated by the apache server on the raspberry. so the router must have forwarded the request.)The problem, I think, is that because I do not have a domain, wordpress points to my local ip as WordPress Address (URL) and Site Address (URL) i.e https://192.168.x.x
so when i connect from the internet (by typing https://myip.igot.from.myisp), the browser arrives at the router, gets forwarded to the raspberry pi and then tries to load that local ip (192.168.x.x), which is of course is not possible because that computer isn’t in the local network.
I have tried modifying the wp-config.php file in multiple permutations of local and global ip and others and also tried to change etc/hosts file to make an address like site.local point to localhost on the pi and to the global ip on the connecting computer all to no avail. when I connect via the internet it goes looking for that 192.168.x.x address and after a while times out. In the address bar it actually then shows the local ip….
I tried to google this basically the whole day but haven’t found the solution yet. Could it be a weird non standard function of the router or something?
Am I trying to do something impossible or intensely stupid? Does WordPress only work with a registered domain? What am I not getting?
Thanks a lot for helping a newbie along if possible.
Sven
- The topic ‘Connect to WP on RPI from Internet with IP’ is closed to new replies.