abalfazl hossein wrote:The story is, I ran this program on his computer, for first time, His computer be as server and client,as time that I ran on my computer, On my computer it works, But on his computer it throws that exception.
Mohamed Sanaulla | My Blog | Author of Java 9 Cookbook | Java 11 Cookbook
abalfazl hossein wrote:My IP address [?]: 94.183.229.216 [Whois] [Reverse IP]
My IP country code: IR
My IP address country: ip address flag Iran, Islamic Republic of
....
run:
Server: HELO
Server: Hi there
Server:
Server: .
ok
Ok
Ulf Dittmer wrote:It looks like both client and server exhibit the Don't println to a Socket bug. (There may be other problems, but that one jumped out at me.)
Mohamed Sanaulla | My Blog | Author of Java 9 Cookbook | Java 11 Cookbook
reads the Line from the stream and then prints it on the standard output. If the line contains "Ok" it breaks out of the loop.
abalfazl hossein wrote:
Sometimes this program does't work and folks told me it is about firewall or maybe my computer is behind a NAT
Then how other programs access to internet without any problem?If it is a permission, I can give permission and it isn't necessery to turn off firewall.
If you want a machine on the internet to get you a NAT'ed machine, you will need to configure the server to forward ports to your machine.
abalfazl hossein wrote:Thanks, But MSN messenger, Or Yahoo messenger doesn't manipulate the router.
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
abalfazl hossein wrote:Thanks, But MSN messenger, Or Yahoo messenger doesn't manipulate the router.
"I know this defies the law of gravity... but I never studied law." -B. Bunny Defiant tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
|