I am wondering if there is a way to dynamically change the IP address that my application is sending to. When I attempt to connect to a new IP address, I get this error:
SocketException: An invalid argument was supplied.
However, when I switch the IP manually through the Editor UI, I don't have any reconnection issues.
Unfortunately, I don’t have iOS devices at hand right now to see what the problem is. Try using the Close() method before changing the IP and Connect() after.
Hi,
I am wondering if there is a way to dynamically change the IP address that my application is sending to. When I attempt to connect to a new IP address, I get this error:
However, when I switch the IP manually through the Editor UI, I don't have any reconnection issues.