Server management using PHP [closed] - java

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I have a Java server application. I Also have a PHP page which displays logs related to the server, both the page and the server share the same database. I want to be able to stop/start the server (which starts from a .bat) through my page.
What is the best and most secure way to accomplish this?
I tried using some functions which are supposed to run files like exec and system but they just didn't work. I think it's because these are disabled on XAMPP.
Obs.: I can't kill the server process, it would left the ports in use.

The Java-based server should expose some kind of admin interface, for example a socket or a Web Service. When it receives a message (which meaning is "shutdown") it starts an orderly shutdown.
As a security measure, the admin interface should only listen on 127.0.0.1.

Related

Get client user account using java [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I'm writing a web-application using Java. It's for company's internal use.
Now I want to get the client's account name, which is in AD domain, and send it to server.
What tech should I follow?
Or, is there any other idea to complete the auto-login?
Consider this situation, the user login the windows system and open
our web app via browser, and the web app can know the user's windows
account name.
Thank you!
Based on the limited information, I guess the technology you are looking for is SPNEGO. This is the mechanism by which a browser on a windows machine can authenticate itself to a web-server transparently using the Kerberos keys present on the machine.
Here is a link to its Spring integration: http://projects.spring.io/spring-security-kerberos/
(I personally did not use the above Spring one, but used the Kerberos implementation that came with JDK 1.4)
The older non-secure version of windows transparent web-authentication used to be NTLM, but that shouldn't be supported anymore.

How can I find all servers on the local network? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I want to design a software in java. I have a client program in my personal computer which is located in a LAN. In other pcs of this LAN server application has been installed. So the image of my system is like this:
Ok, in this system servers have not same port , because some ports may close in each system, these servers just listen to a connection after finding an open port , as well Client doesn't know their IP, but as I mentioned all of these servers and client program are located in a LAN, picture of client program is some thing like this:
When I click the Scan NetWork Button , Client should find all of the listener servers in network , what should I do in this case? Is it possible to find all listener servers with a client in a network with cause I'm new to networking.
What you probably want is some kind of zero-configuration networking instead, like Bonjour/Zeroconf or SSDP. There are several Java implementations for both, as well as lots of native implementations on almost all OS.
They both solve your problem of finding the servers without knowing their IPs or ports.

how to create application layer (server ) in java [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I am building an android app and i have following doubts:-
I need help in how to create back end that is server (application layer).(I am good in java . so if you could guide me a way using java that would be nice)
I need know how to connect the server to my app both on app and on server side.
It depends on you're needs but you're best bet is using something like Django, Ruby on Rails or Python.
Building Awesome Rails API's Part 1
If you want to use Java, there are more ways. Here is one of them (pretty common these days). Your backend app could be a spring based and use REST controllers as the endpoints. There are plenty of introductions, e.g. http://spring.io/guides/gs/rest-service . Once you have established and run the backend app (either deployment to a web server or spring boot - see http://spring.io/guides/gs/spring-boot/) you can connect to the server via TCP/IP. Your android app could use http-client.

Server to Server communication using servlet? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
In my case there is a cloud server and personal application server.
I have to make a communication between both servers for accessing the data periodically.
How to create api for communication using servlet.
Is possible to use timer in servlet?
Any other suggestions?
Thanks in advance.
Yes, you can user a timer within a servlet, but as Stanley suggested, web services is a layer on top of http that you can use and it may be easier.
If you just need some quick and dirty way, you can write a servlet to receive the http request in one end and some http client to do the request.
If you go Java EE, it's even easier because you can generate web services using annotations and there's already a TimerService so you won't have to reinvent the wheel.

How to make android multiplayer games without port forwarding [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I am trying to make a multi-client application in which somebody is the host and other people join into the game. I need this to be possible without port forwarding so that users can easily set up their server. Is this possible without any help from any of those server hosting companies that help out? Is there any special port that doesn't require port forwarding?
As far as I know, the only possible approach is to use UPnP (Universal Plug and Play). More specific: Internet Gateway Device Protocol (IGDP). This makes the port forwarding go automatically. It is a protocol that has the possibility to ask the gateway to forward a port to your machine. So this isn't really "without" port forwarding, but it will do it automatically, instead of the user having to go and configure their router.

Categories

Resources