Henk, you suggested that:
The tricky thing here is that even if Python on the PC could fetch the PC's address, it would still have to be manually entered into the SB code so that iOS would direct the print stream to the PC. I can't fathom how Smart Basic could find the IP address of a PC while running on a different device, but maybe someone out there knows the answer.There might be a solution in which the adress of the PC is fetched by either the SB function or by the Python webserver code
For now I will put ipconfig on a shortcut on the toolbar so that I can quickly fetch the PC's address.