Update:
- It won't crash anymore, except if you fill in a fake IP, which isn't my problem.
- I added a button to check if a CO server is on.
- I am still working on this.
It checks if a server is online and you can scan any random port at any random IP to see if its open or closed. (It has to be open at the moment you scan, so the person has to run the program that keeps it open, e.g. WampServer.)
If its his work, Its not up to you whether its insignificant enough to post.
If he doesn't obfuscate it its not my problem.
I used a .NET Reflector. His code isn't that hard of work so don't think it will take long. ( not that im saying you did a bad job, just telling this guy that its not much to steal )
ive seen that my ports are closed, maybe thats why i cant use my IP's on my server, so how do i open my closed ports?
This is off-topic, but add my msn , and I'll do what I can.
~9 views, and only 4 thanks, please hit the thank button, It took some time~
@Pete, I don't think its respectfull to reflect someone's released .exe and than release the source on the same forum, however, this is my opinion, I've protected it this time, I didn't except anyone to do that though.
This is off-topic, but add my msn , and I'll do what I can.
~9 views, and only 4 thanks, please hit the thank button, It took some time~
@Kinshi, I don't think its respectfull to reflect someone's released .exe and than release the source on the same forum, however, this is my opinion, I've protected it this time, I didn't except anyone to do that though.
"@Kinshi" ? What did I do? I haven't even posted in this thread (till this post).
I thought that, for a socket to connect, there would have to be a server listening on the end of the port and address specified. If so, is "Port Scanner" really a valid name for this program?
Your program wouldn't for me (for reasons I know of), so I wrote one in Java:
Code:
/*
* @ServerStatusChecker.java
*
* GUI which allows the user to input an Ip address and port.
*
* This program will notify the user if the server on the given
* address and port is listening.
*/
package serverstatuschecker;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.net.Socket;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JTextField;
import javax.swing.SwingUtilities;
/**
* @author Rab
*/
public class ServerStatusChecker
extends JFrame
implements ActionListener {
public ServerStatusChecker() {
super("Server Status Checker");
initComponents();
}
private void initComponents() {
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
addrLabel = new JLabel("Ip Address:");
addrField = new JTextField();
portLabel = new JLabel("Port:");
portField = new JTextField();
doItButton = new JButton("Do It!");
doItButton.addActionListener(this);
setLayout(new GridLayout(5, 1));
add(addrLabel);
add(addrField);
add(portLabel);
add(portField);
add(doItButton);
pack();
}
/**
* Checks to see if the a server on the specified Ip Address and port
* is listening for connections.
*
* @param addr the Ip address of the server
*
* @param port the port of the server
*
* @return a boolean dependent on whether or not the server on the
* specified Ip address and port is listening
*/
public boolean isListening(String addr, int port) {
Socket socket = null;
try {
socket = new Socket(addr, port);
return true;
} catch (Exception ex) {
return false;
}
}
/**
* Checks an Ip Address for validity.
*
* @param addr Ip Address to check
*
* @return a boolean depending on whether or not the specified Ip Address
* is a valid one
*/
private boolean isValidIp(String addr) {
String[] parts = addr.split("\\.");
if(parts.length != 4) {
return false;
}
for(String s:parts) {
int v;
try {
v = Integer.parseInt(s);
} catch(NumberFormatException ex) {
return false;
}
if(v < 0 || v > 255) {
return false;
}
}
return true;
}
/**
* Checks a port for validity.
*
* @param port the port to validate
*
* @return returns boolean depending on whether or not the specified port
* is a valid one
*/
private boolean isValidPort(int port) {
return port >= 0 && port <= 65535;
}
public void actionPerformed(ActionEvent e) {
String addr = addrField.getText();
int port;
try {
port = Integer.parseInt(portField.getText());
} catch(NumberFormatException ex) {
JOptionPane.showMessageDialog(this, "There was an error.\n" +
"Please check to make sure that the Ip Address and Port\n" +
"are correct and try again.",
"ERROR", JOptionPane.ERROR_MESSAGE);
return;
}
if(isValidIp(addr) && isValidPort(port)) {
if(isListening(addr, port)) {
JOptionPane.showMessageDialog(this, "This server is online.", "Server Status", JOptionPane.INFORMATION_MESSAGE);
} else {
JOptionPane.showMessageDialog(this, "This server is offline.", "Server Status", JOptionPane.INFORMATION_MESSAGE);
}
} else {
JOptionPane.showMessageDialog(this, "There was an error.\n" +
"Please check to make sure that the Ip Address and Port\n" +
"are correct and try again.",
"ERROR", JOptionPane.ERROR_MESSAGE);
}
}
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
SwingUtilities.invokeLater(new Runnable() {
public void run() {
new ServerStatusChecker().setVisible(true);
}
});
}
private JLabel addrLabel, portLabel;
private JTextField addrField, portField;
private JButton doItButton;
}
It is probably better and more reliable than yours, but I do not know that for a fact.
I thought that, for a socket to connect, there would have to be a server listening on the end of the port and address specified. If so, is "Port Scanner" really a valid name for this program?
Your program wouldn't for me (for reasons I know of), so I wrote one in Java:
If you're going to code it in Java, you may aswell use PHP.
Portable Goguardian V2 Public Release 06/15/2011 - General Gaming Discussion - 28 Replies So I have decided to publicly release V2 of my Portable Goguardian. I'm not big on PvP hacks or hacks which can ruin another's fun, but the PG is completely personal and does not affect another player's game experience.
The PG gives you access to the goguardian menu anywhere within the game world. This is extremely useful when hunting or leveling as you can leave most of your ammo in the Gogu, and drag it into your inventory even when you're in the boss room of Regants.
The PG is a...
[Release] Port Scanner v1.0 FREE 08/22/2010 - Coding Releases - 13 Replies Hallo Elitepvpers
Heute release ich meinen Port Scanner v1.0 FREE. Infos zur Premium Version gibts unten. Dieses Tool Scannt von der eingegebenen IP die Ausgewählten Ports.
Folgende Features sind euch in der FREE Version sicher :
-Auswählen der IP
-Auswählen von welchem Port
-Auswählen bis zu welchem Port
-Schönes Design
-Farbig, wenn Port offen ist
[Release]Portable Server Status Checker 09/09/2009 - CO2 PServer Guides & Releases - 34 Replies Reasons I released this:
1) I know there are lots of people who have their servers in beta testing ect, and maybe you might not have a website as yet, or a server status page.
2) I was bored.
So, by the Config.ini is set to:
IP=127.0.0.1
Port=80
[RELEASE]Port Scanner by MarcoPolo 07/01/2009 - Metin2 Private Server - 25 Replies Ich hab mir mal vorgenommen, euch ein tool zu proggen, was euch das portscannen ermöglicht
Ich werde hier weder URL's noch Port's posten oder in mein Programm einbetten
die müsst ihr schon selber rausfinden
Installation :
Downloadet euch die Datei im anhang ( Port Scanner by MarcoPolo.rar )
Entpackt das Archiv in irgendein verzeichniss
startet die Check IP & Port by MarcoPolo.exe