Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.io.IOException;
- import java.net.InetAddress;
- import java.net.Socket;
- public class Main {
- private Socket skt;
- public Main() {
- try {
- this.skt = new Socket(InetAddress.getByName("127.0.0.1"), 2021);
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- }
- public static void main(String[] args) {
- new Main();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement