Skip to content

Commit

Permalink
Use IP instead of local domain name (gave several people problems)
Browse files Browse the repository at this point in the history
  • Loading branch information
febeling committed Aug 29, 2011
1 parent 2366270 commit 33b4997
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions AppController.m
Expand Up @@ -32,13 +32,14 @@ -(IBAction)openDoor:(id)sender{
NSLog(@"Trying to open the Door");

// Setup a request
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"http://door/letmein"]
cachePolicy:NSURLRequestReloadIgnoringLocalCacheData
timeoutInterval:5.0];
// TODO investigate and use local domain name again, http://door/...
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"http://192.168.2.5/letmein"]
cachePolicy:NSURLRequestReloadIgnoringCacheData
timeoutInterval:5.0];
[request setHTTPMethod:@"GET"];

// Open the connection¬¬
[[NSURLConnection alloc] initWithRequest:request delegate:self];
[[NSURLConnection alloc] initWithRequest:request delegate:self];
}

// Everything is fine
Expand Down

0 comments on commit 33b4997

Please sign in to comment.