Win a copy of liveProject: Protecting User Data with Spring Security and OAuth2 this week in the Spring forum!

Luca Simonetto

Greenhorn
+ Follow
since Mar 28, 2014
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 Luca Simonetto

Hmm ok i have also read of an intermediate server used as a bridge where client and server connect but is a solution too estreme for the use of the program.
I Will implement it for LAN only connections

Henry Wong wrote:
First, it would help us if you tell us what the "pain" is. Second, it would also help us if you tell us what the network configuration looks like -- are you going on the LAN? going though a router to another LAN? through the internet? etc.

Henry


the problem is the usage of the program without being on the same network, the bypass of the firewall restrictions on incoming connections. Inside the same LAN no problem, all works fine, when i try to use it over internet the client can't connect to server. I am trying to resolve without portforwarding, so the server program is portable without gaining access to every router's settings.
Hi all, i have a little problem with my simple simple program. I'm at first year of university and I just started learning java and i tried to create a simple rock paper scissor program between a server program and a client one.
When I run them in my own network all is fine, i can play and score points, but when i try with a client that is on another network the pain starts
The problem is the usage of the program without being on the same network, the bypass of the firewall restrictions on incoming connections.
I thinked of using some port between the common ones, like the port 80, and if there isn't an apache server running it should work but in this case i don't know if i have to use some specific protocols like http...
If you can help me I would appreciate, i know i may portforward but i was thinking of a mobile program that can be portable
Here there is the code for the two programs
For Server


For Client


BTW I'm Italian so part of code is in my language