سؤال

I apologise if my question wasn't worded correctly, I wasn't sure how to put it. Also forgive me if it isn't in HTML and turns out to be some other web scripting language. I don't know the capabilities of PHP or ASP or ColdFusion etc etc.

What I'm trying to do is have a page on my web server that when a user clicks a button on the page, the server will check if a port is running on it's own IP with a preset port for each button, I want multiple buttons with the same IP but different ports to be pinged.

Example: Button 1 (Terraria Server) is clicked, server pings 127.0.0.1:7777 and tells the user if it gets a response or not. Button 2 (Minecraft Server) is clicked, server pings 127.0.0.1:25565 and tells the user etc etc.

هل كانت مفيدة؟

المحلول

You can't do this in HTML. If you are working with PHP, you can look at this question for your answer.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top