I only have on thing to say....
I never thought my app was going to be accepted this way!
I'm really glad people liked it, and JABEROSX, feel free to modify the tool to suit the needs of most of us.
Just remember one thing. Some special configurations report more than one IP. That's the reasons I made the IP configuration something that must be done manually.
You should use the same approach as mediatomb:
It detects the IP automatically, but you can configure (using the parameters) which interface you want it to serve to...
My virtual machine interface:
Mediatomb used to select 192.168.8.0 automatically. so I always had to start it with an options specifying I wanted to use my lan interface.
R u working on it from Java?
or r u using the .bat file to do that stuff?
remember that the application should run inside linux too.
One note for the Linux guys:
There is no need to modify the application to start with the system. Just google how to add a startup script to your system, and you are done.
Remember that running a command like this:
Will let the app running in background and you can close the terminal console too. It's like a daemoin running in the background in windows
(is not the same. I'm just trying to get to the point)
thank you all!
I almost forgot, the next text is for security issues only. Nothing important since most of the time this server is not run from machines with direct access to the internet. They are behind a LAN, so there is nothing to worry about
To run the dns server in Java, I modified a version of JNamed (a dns server that uses the dnsjava library).
I use that, cause it works, I can modify it to my needs, and I only had to add a few lines to it to make it do what I wanted to do.
The thing is that, for security reasons, if you are going to autodetect the IP for the internal network. You should modify the file called "jnamed.conf" (inside the dnsconf folder) and change this line "address 0.0.0.0" to "address THECORRECTIP"
If no addresses are specified, jnamed will listen on all addresses,
using a wildcard socket.
I don't use that currently, cause I only open the program when I'm going to use the PS3, and the tool runs inside a LAN, so the security concerns are not that important...
I hope it helps... also... tha java policy file should not give full access... I think it should only give socketpermissions and filepermissions (it opens the update.txt file). what do you think?