I have a dynamic ip address
, and I need my client to connect to my server even if my ip address changed.
I port forwarded my port and using the duc of No-ip.org
.
Is it possible to connect if I declare my host like this?
def socket_create():
try:
global host
global port
global s
host = 'testnoiphost.ddns.net'
port = 9999
s = socket.socket()
except socket.error as msg:
print("Socket creation error: " + str(msg))