Java socket code to bypass routers
Posted on 2005-05-11
Hello, I am kind of new to java programming. I recently wrote a small chat program that works with wired connections from PC to PC. But when I tried it using a wireless connection I believe my router(linksys) would not allow me to do so, even if I was connected to with a wire to the router the same problem. Is there any specific code in Java to eliminate this problem?
Here's what I have to do the connections:
ssock = new ServerSocket(sock_num);
client = ssock.accept();
client = new Socket(IP,sock_num);