Advertisement
TrodelHD

Untitled

Apr 21st, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. import java.io.IOException;
  2. import java.net.InetAddress;
  3. import java.net.Socket;
  4.  
  5. public class Main {
  6.  
  7. private Socket skt;
  8.  
  9.  
  10. public Main() {
  11.  
  12. try {
  13. this.skt = new Socket(InetAddress.getByName("127.0.0.1"), 2021);
  14. } catch (IOException e) {
  15. // TODO Auto-generated catch block
  16. e.printStackTrace();
  17. }
  18. }
  19.  
  20.  
  21.  
  22.  
  23.  
  24. public static void main(String[] args) {
  25. new Main();
  26.  
  27. }
  28.  
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement