Re: Re: How easy would it he to rig something like this up?

Forums General General Discussion How easy would it he to rig something like this up? Re: Re: How easy would it he to rig something like this up?

#46297

The script you posted would also change the address bar to the ip address. as in, when you go to subdomain.domain.com it would change to your ip address. I’m looking for a way to mask the IP address, and leave the domain name intact. Do you know of any way to do this through Server? Otherwise it would be more related to DynDNS I think.

EDIT: Here’s a little Java program I wrote to make a text file containing your local IP address:

import java.io.*;
import java.net.*;

public class IPAddressWriter {
public static void main(String[] args) {
URL ipURL = null;
BufferedReader in = null;

try {
ipURL = new URL("http://whatismyip.org/");
} catch (MalformedURLException e) {
e.printStackTrace();
}

try {
in = new BufferedReader(new InputStreamReader(yahoo.openStream()));
BufferedWriter out = new BufferedWriter(new FileWriter("ip.txt"));
out.write(in.readLine());
out.close();
in.close();
} catch (IOException e) {
e.printStackTrace();
}
}
}

So, now I can schedule a Windows task to do an FTP transfer to my computer at home, so that leaves only one more hurdle: getting a subdomain redirected to that text file…