Discussion:
mac question
(too old to reply)
t***@gmail.com
2013-05-08 20:53:34 UTC
Permalink
Sry, I didn't see an os.macos.networking.tcp-ip or osx...

I am wondering if it is possible to make a TCP connection from an iPad to a MacBook Pro while the MacBook is not connected to the internet.

I know how to set up the MacBook to create a private wireless network, and have the iPad join it, and then write code to create and use sockets.

It works when Macbook is connected to internet via Ethernet, but when there is no connection it has no IP address. I tried manually assigning it, but iPad cannot see it.
Barry Margolin
2013-05-09 04:07:24 UTC
Permalink
Post by t***@gmail.com
Sry, I didn't see an os.macos.networking.tcp-ip or osx...
How about comp.sys.mac.comm?
Post by t***@gmail.com
I am wondering if it is possible to make a TCP connection from an iPad to a
MacBook Pro while the MacBook is not connected to the internet.
I know how to set up the MacBook to create a private wireless network, and
have the iPad join it, and then write code to create and use sockets.
It works when Macbook is connected to internet via Ethernet, but when there
is no connection it has no IP address. I tried manually assigning it, but
iPad cannot see it.
You assigned the IP to the Ethernet or Airport? You should assign it to
Airport -- Ethernet is irrelevant.

Do you have a wireless router? You can use that to connect them, it
doesn't need to be connected to the Internet.
--
Barry Margolin
Arlington, MA
t***@gmail.com
2013-05-09 05:36:38 UTC
Permalink
Thanks. I don't see AirPort. But I leave wifi on, and create a network on the MacBook. It self assigns an IP. I can connect the iPad to the network I created, and the iPAd has an IP address. They have the same subnet mask 255.255.0.0.

But the two devices cannot ping each other's ip address.
glen herrmannsfeldt
2013-05-09 07:41:49 UTC
Permalink
Post by t***@gmail.com
Thanks. I don't see AirPort. But I leave wifi on, and create a
network on the MacBook. It self assigns an IP. I can connect the
iPad to the network I created, and the iPAd has an IP address.
They have the same subnet mask 255.255.0.0.
But the two devices cannot ping each other's ip address.
They should have the same network part of the IP address, which,
given the mask, is the first two octets.

Otherwise, you need a router to connect them.

Easiest is with a wireless router that doesn't have to be connected
to the Internet to assign (DHCP) addresses and allow the two to
communicate with each other.

-- glen
Barry Margolin
2013-05-09 14:12:18 UTC
Permalink
Post by t***@gmail.com
Thanks. I don't see AirPort. But I leave wifi on, and create a network on the
MacBook. It self assigns an IP. I can connect the iPad to the network I
created, and the iPAd has an IP address. They have the same subnet mask
255.255.0.0.
But the two devices cannot ping each other's ip address.
How did you create the private WiFi network on the MacBook if you
couldn't see AirPort? AirPort is what Macs call their WiFi interface.
--
Barry Margolin
Arlington, MA
Loading...