I'm trying to use a java program for my webcam page, but there is one slight problem. I'm on DSL and my IP changes, and the java needs the exact IP! I've been tryign to use a program called IP-Update for the pages I need updated, but the program doesn't work half the time, and was really poorly written to start with--sometimes it modifies the source files instead of the destination files, and things like that.
Someone said to use
- Code: Select all
echo $SERVER_ADDR
- Code: Select all
<!--#echo var="SERVER_ADDR" -->
Does anyone know of either a program that can take source files and stuff my IP in them, or a way to get the server to include the WAN IP? Any hel pwould be greatly appreciated!
Thanks
John
[EDIT]
P.S. I can use a page like http://www.changeip.com/ip.asp to get my external IP...that is actually what IP-Update uses as well.
[/EDIT]