|
That *really* won't work for him - he was needing something that he can put in a compiled class to discover the server (needless to say, you can't simply insert PHP into a Java class). If he already knew the address (DNS or IP), he wouldn't be having these problems. Unless he was talking about finding his own IP, we've been working on the assumption that he has no clue as to where his server is located any given day. Your solution only works if you know the DNS address, which isn't an assumption here.
|