automatic webcam ip port calculation from main ip port