DougieLawson wrote:Sorry, I have no idea what you're talking about.
On every machine/server/phone/internet TV/etc. in your network you have three significant pieces
1. Unique IP address (within your LAN segment)
2. Netmask (/24 or 255.255.255.0 is normal for a LAN with at most 253 station)
3. Gateway address (which should be identical on each)
The gateway is the controller, the gateway is usually the DHCP server and the DNS server. If everyone can ping the gateway then (firewalls permitting) they should be able to ping and connect to every one of the other 252 stations.
Draw a diagram on the back of a napkin, label up each machine and from each machine test connectivity to each of the others (starting with the gateway).
I figured out what i was doing wrong, I was connecting to an ip i had set in /etc/network/interfaces:
address 192.168.1.1
But this didn't work, figuring out the ip of the PI through "hostname -I" told me the ip
I changend the /etc/network/interfaces
address 10.0.x.x (not actually x's ofcourse)
which i could connect trough to the nginx webserver and the piui bij adding :9999 to the ip
Now that i have this working, i still have 2 questions:
-Is the ip i filled in after "address" a static ip? If i connect to another router, will i have the same ip again? Do i need to put 10.0.1.0 there?
-How can i tell the pi that something like "
http://mywebsite/" should connect me to the "10.0.x.x:9999" web adress (something like adding a dns entry?)