Hello,
I have a problem with my java program simple yet all I read every tutorial on the socket and yet nothing I can not solve my problem. My program has yet to connect a fixed ip as the website. I come carefree connect to google youtube etc. The concern comes when I try to connect to a computer located to router and provided with a dynamic ip address. I think I am have a socket problem in my code.
Here is my code:
Code:public class securiter { Public static void hand(String[] args) { Socket msoc = null ; try { msoc = new Socket("192.18.132.XX",8887) ; msoc.close() ; } catch (Exception e) { System.out.print("Unable to connect to the IP address") ; } } }
Bookmarks