Webcam32 FAQs       User's Guide       Java Support       Help Wizard

IP Upload


When using a dialup network connection with an Internet Service Provider (ISP), each time you connect to the Internet, you are assigned a new IP address (eg. 1.2.3.4).   This effectively means that you have a new network identity each time you connect to the Internet.  If you wish to use Webcam32 with single frame or server push mode instead of FTP, you have to keep updating your HTML pages on your Webserver with the new IP address.  Webcam32 provides a solution to this problem which is illustrated below:



1 PC Dials the ISP using a modem
2 ISP assigns an IP address to the PC dynamically
3 Webcam32 reads an HTML file and changes occurrences of the characters %%IP%% (or $$IP$$) to the IP address
4 The HTML file is uploaded using FTP to the Webserver

By using the IP Upload setting in the FTP settings, Webcam32 can trivially automate this task.  The dialog shown below is taken from Webcam32.



In this dialog, a file containing HTML content may be named.  If the Upload HTML page at Webcam32 startup check box is enabled, each time you start Webcam32, the named file will be FTP'd to the Webserver and directory named in the FTP Basic settings.  If the Upload HTML page when IP address changes is checked, each time an FTP upload occurs to the FTP server, the current IP address assigned to the PC is compared to the last one uploaded and if different, the page is re-uploaded.

Anywhere within the HTML file that the text %%IP%% is found, it will be replaced with the current IP address before FTP upload.  The result is that when Webcam32 is started, the web page on the web server is replaced with new content which includes the current IP address.

For example, if the page contains:

<IMG SRC="HTTP://%%IP%%:8888/video/frame">
	or
<IMG SRC="HTTP://$$IP$$:8888/video/frame">

and the current IP address is 192.168.0.1, the uploaded page will contain:

<IMG SRC="HTTP://192.168.0.1:8888/video/frame">



Multiple Network Adapters

If the machine running Webcam32 has multiple network adapters, you may find that the IP address uploaded is the wrong IP address.  The uploaded address may be one of the other adapter addresses (eg. Ethernet or Token Ring) as opposed to what you might have expected (eg. Dialup Networking).  The correct IP address can be selected from the IP address list under TCP/IP Access Preferences.

newSmall.gif (1176 bytes) In Webcam32 V4.9.5 and onwards, a technical solution was added to resolve this sporadic problem.


IP Upload with multiple frames

Because IP Upload only uploads one file, using multiple frames, such as a page with Chat/RCM Control/Javacampush in it, isn't supported naturally by Webcam32. Instead, you must use a bit of Javascript in the frameset page, and then use more Javascript in each of the seperate frame pages in order to get this to work. An example of the frameset page might look like this: