Java Socket connection abandoned my public IP

I have a client server architecture project in android. I cannot connect to my public IP server. I closed the firewall and redirected the port to the server. My friend can connect externally to my server, but I can not, why? how can this be? .. Thank you ..

+3
source share
1 answer

In which OS is the code of your client server running. If Windows, find c: \ Windows \ System32 \ drivers \ etc \ hosts if it linux runs / etc / hosts / file

Open the file with sudo privileges.

Format:
<IP> <HOSTNAME>.<DOMAIN> <ALIAS>

Example:
127.0.0.1 localhost.localdomain localhost

IP . . . , , ​​ os env ?

+1

All Articles