This error means that the script cannot run as the web page for the Raspberry Pi because something else already is.
This may be because:
You have another copy of 4BorgWeb.py already running
There is another script running which does the same thing
There is a service or program installed using the address already
Either you can try and figure out what the other program is and disable it, or you can make the script use a different port.
To change the port in the script you need to find this line: webPort = 80
and change to a different number, for example: webPort = 2000
To access the page with a different port you need to change the URL slightly.
Add a : followed by the new port number like this: http://192.168.0.198:2000
Everything else should work the same as normal.
piborg
Fri, 06/10/2016 - 16:11
Permalink
Address already in use
This error means that the script cannot run as the web page for the Raspberry Pi because something else already is.
This may be because:
Either you can try and figure out what the other program is and disable it, or you can make the script use a different port.
To change the port in the script you need to find this line:
webPort = 80
and change to a different number, for example:
webPort = 2000
To access the page with a different port you need to change the URL slightly.
Add a
:
followed by the new port number like this:http://192.168.0.198:2000
Everything else should work the same as normal.
vitvilla@gmail.com
Fri, 06/10/2016 - 17:02
Permalink
I tried changing the webPort
I tried changing the webPort and that works!! I will check what else is using the socket later.
Thanks for your help and the quick reply