mike lim

Greenhorn
+ Follow
since Jul 18, 2012
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by mike lim

Norm Radder wrote:

how other programs can just connect to other computers such as zoom video calling or messaging apps like facebook messenger/viber/skype without doing any configurations involved.


Your compute is a client, not a server for those applications.



Got it.. thanks..

mike lim wrote:Yes, I just tried out Hamachi, and it works, it connects. But then I get the error java.net.SocketException: Connection reset.. it doesn't print out the string that was sent, it just connects..

Hamachi seems to work.. are there any other VPNs out there I can use..



Oh I got it to work sending a message sorry, I forgot to initialize my BufferedOutputStream..
Yes, I just tried out Hamachi, and it works, it connects. But then I get the error java.net.SocketException: Connection reset.. it doesn't print out the string that was sent, it just connects..

Hamachi seems to work.. are there any other VPNs out there I can use..

Adrian Grabowski wrote:You will need to find out your public IP address and then set up port forwarding on your router.



isn't it risky to setup port forwarding?
I read that there's some port forwarding involved or something. It seems like a security risk to do that.. I'm just wondering how other programs can just connect to other computers such as zoom video calling or messaging apps like facebook messenger/viber/skype without doing any configurations involved.. why does Java have to configure your router/firewall..
Just did that, and I tried to ping the server IP with the global IP address I got from google in the command prompt of the client computer, it says timed out.. Is it because of the firewall? Should I use something like Hamachi to make it easier to connect 2 remote computers?
On the client side the error is just that it says it timed out. I see is my IP address wrong..? How can I get an address from a remote computer on the internet..? I just copied the IP from running ipconfig on the server computer..
Hi, I'm trying to learn how to connect 2 computers from different locations through internet (not on a local network). I did some research and wrote some code but I get errors when running the 2 programs (1 client app and 1 server app). Here's the code..

server:


and the client:



any help? Am I doing something wrong? I run the server application first the click the button to listen then run the client app from another computer.. Thanks in advance..
without third party gui editing software please... thanks... only hard code...
7 years ago
Hi guys, I'm just starting in java... or coming back to using it again... I'm not that good so I was wondering after reading on my old java book, how to arrange components such as labels and buttons in a panel in a vertical position, much like a webpage link panel on the left side where the user chooses which page he wants to go to... the default layout of a jpanel is a flowlayout I think and all the components I add to it just automatically arranges itself horizontally which is really far from what I want to do... Hope any help would be ok... it would be easier if it was html where I just add a <br> in order to skip a line and then just add each separate link... is there some sort of absolute positioning for components in a panel or contentpane where I can use to store jlabels/jbuttons so I can arrange the components in a way that can be more user friendly... thanks again...
7 years ago