i have a couple of problems using the nfcchat-server:
1.) I would like to run two different nfcchat flash-servers on my linuxbox on different ports (e.g. 7777 & 7778). is this possible?
2.) is there a script to start/stop/reload the flash-servers (not both, just the one of the two i want to start/stop!)
3.) i want to log every connection in a mysql-database. how can i do that when i need to allow every user to connect (every user-id without password) and i would like to allow access only from a specific IP. is this possible?
thanks a lot for your help! :-)
all best, daniel
1.) yes, just copy the nfc-directory. Now you can use and configure these two instances simultanously. It is not possible to configure one server to listen on two ports.
2.) see 1.), simply use the scripts in the specific directory
3.) Logging: Two ways to do this:
a) you'll have to write some java-code to do this. E.g. you could write an authenticator which allows every use to connect and adds an entry to your database
b) you could write a script which parses the nfc-logfile and adds entries for every connection to your database
Restriction to specific IP: either do this in your firewall-configuration or you have to write an suitable authenticator as suggested in 2a). Simply check if the clients IP-address matches the one you want. If not, refuse the connection.
I hope this helps you,
Thanks for your help but I can only find a script to start my server-instance in the nfc-directory. but i would like to have a skript (like the ones for lots of linux servers like apache) to restart|stop|start the server. usage like this:
or ./nfcFlashServer reload
This script should only restart the instance which i started in the same directory.