Web Hosting Talk







View Full Version : Flash linking to old IP address


jaymef
04-28-2009, 05:27 PM
I recently migrated a cPanel server to a new data center (which required changing IP addresses). I later found out that one client on the server had a flash page which has several links that direct to the old server IP address (which is no longer running). The client had the site programmed for him several years ago and has lost touch with the developer and he does not have the source FLA's on the server or locally on his computer.

Short of re-writing the entire menu is there anything that could be done to correct this problem? I thought that maybe I could do something with mod_rewrite but I don't believe the outgoing requests would pass through the new server, so that option is out. I've thought about trying to decompile the SWF but I've heard that decompiler don't typically work very well.

larry2148
04-28-2009, 09:12 PM
Strange, the links in the flash menu actually point via IP address? That would be a poor coding design :(

Maybe you've not restored everything in the same structure?

dexxtreme
04-29-2009, 06:13 AM
I believe your customer is pretty much SOL. Since the flash applet is run from the client's machine and is hard coded to connect to a server that no longer exists, there is nothing you can do on the new server (short of somehow ripping apart the flash applet and re-writing it, possibly from scratch) to get the flash applet to connect to the correct server.

xphoid
04-29-2009, 04:04 PM
SWF decompile would probably work fine in this case, assuming the file is not encrypted and you have the same fonts installs (easy fix, if not).

zomgmike
04-29-2009, 04:22 PM
I believe an adequate solution may be setting up a custom local loopback IP on your new system. So if your old server IP was 1.2.3.4, pinging 1.2.3.4 won't access your old server (or whoever is currently using that IP), but rather loops back the same as pinging 127.0.0.1.

You'd need to follow directions similar to this (http://www.cisconet.com/index.php/Microsoft/How-to-create-loopback-interface-on-Windows-XP.html) but Google for one relevant to your operating system.

Let us know how it goes!

larwilliams
04-29-2009, 06:06 PM
I believe an adequate solution may be setting up a custom local loopback IP on your new system. So if your old server IP was 1.2.3.4, pinging 1.2.3.4 won't access your old server (or whoever is currently using that IP), but rather loops back the same as pinging 127.0.0.1.

You'd need to follow directions similar to this (http://www.cisconet.com/index.php/Microsoft/How-to-create-loopback-interface-on-Windows-XP.html) but Google for one relevant to your operating system.

Let us know how it goes!

Or he could simply download SWF Decompiler (www.sothink.com/product/flashdecompiler/) and find the problem, then fix it. Your solution is a temporary hack at best, and unmaintainable.

xphoid
04-29-2009, 06:28 PM
I believe an adequate solution may be setting up a custom local loopback IP on your new system. So if your old server IP was 1.2.3.4, pinging 1.2.3.4 won't access your old server (or whoever is currently using that IP), but rather loops back the same as pinging 127.0.0.1.

You'd need to follow directions similar to this (http://www.cisconet.com/index.php/Microsoft/How-to-create-loopback-interface-on-Windows-XP.html) but Google for one relevant to your operating system.

Let us know how it goes!

Since the SWF is pointing to the wrong IP no requests will ever reach the new server. It has to be fixed in the SWF.

zomgmike
04-29-2009, 06:33 PM
Or he could simply download SWF Decompiler (www.sothink.com/product/flashdecompiler/) and find the problem, then fix it. Your solution is a temporary hack at best, and unmaintainable.

The more I think about it, my solution might not work, but if you're not comfortable with decompiling flash, might want to give it a try.

dexxtreme
05-01-2009, 12:28 PM
I believe an adequate solution may be setting up a custom local loopback IP on your new system. So if your old server IP was 1.2.3.4, pinging 1.2.3.4 won't access your old server (or whoever is currently using that IP), but rather loops back the same as pinging 127.0.0.1.

You'd need to follow directions similar to this (http://www.cisconet.com/index.php/Microsoft/How-to-create-loopback-interface-on-Windows-XP.html) but Google for one relevant to your operating system.

Let us know how it goes!

Do you really think that every single person that browses his web site will do that, just to access this one flash applet?