Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save bjorn-ali-goransson/9280604 to your computer and use it in GitHub Desktop.
Save bjorn-ali-goransson/9280604 to your computer and use it in GitHub Desktop.
import java.io.DataOutputStream;
import java.net.ServerSocket;
public class Server {
public static void main(String[] args) throws Exception{
new DataOutputStream(new ServerSocket(80).accept().getOutputStream()).writeBytes("Hello, world!");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment