Alter code to use env vars for both IP and port.
Alter main, add scripts.