I have been trying to connect to my own Java TCP application, which is running on a rented server with static public IP.
Scenarios that work:
- server runs host app, and servers from https://check-host.net/ connect to it.
- [my] PC runs both host and client app and connects them.
Scenarios that do not work:
- server runs host app and [my] PC tries to connect (w\ client app, PowerShell Test-NetConnection, CMD telnet)
- [my] PC runs host app and the server tries to connect with client app.
Additional details:
- The server and my PC are able to ping each other.
- I have tried disabling windows firewall, but to no avail.
- My PC is connected to the internet via a modem (I am unfamiliar with modem limitations)
- Java throws the IOExeption: "java.net.BindException: Cannot assign requested address: bind" when trying to start the host application on my PC with it's current public IP specified as the bind address. (The rented server does the same procedure without issue)
[No longer true] I will leave the server running, for those who want to try and connect: IP = **.***.***.** Port = 25 Protocol = TCP (If a successful connection is made from someone at home, then I at least know the issue is local)
I am at a complete loss, and hope that I am giving sufficient information to hint at what is going wrong. I appreciate all feedback as to what could be going wrong.
Thanks in advance.