The mono version that Unity had bundled had a bug that didnt allow for hostnames to be resolved - so one had to input IP of the SFS server.
This is now fixed, so the next version of the API will lift this restriction.
For those that want this _right now_ (like myself), the fix is pretty easy to do in the sources.
Simply find this in the ConnectThread() method
Code: Select all
private void ConnectThread()
{
try
{
IPAddress parsedIpAddress = IPAddress.Parse(ipAddress);
socketConnection = new TcpClient();
socketConnection.Connect(parsedIpAddress, port);
into
Code: Select all
private void ConnectThread()
{
try
{
socketConnection = new TcpClient();
socketConnection.Connect(ipAddress, port);
This has been verified working on iPhone 1.5 and Unity 2.5.1 - it is unknown at what point in time backward this fix was introduced. So make sure you use those Unity versions before attempting this
/Thomas