wxSocket on Mac - use of Hostname fails
David Mathews
grnbriar at mindspring.com
Wed Jul 4 12:19:12 PDT 2007
Server is working on the mac, but trying to make a client connection
is not.
With Windows, I'm passing the machine name as hostname (HPXP, etc)
and the connections are being made without having to use the ip address.
I can only get a client connection to work with the ip dot notation,
but these are not fixed, unlike the machine names.
Does the name need to be specified differently on the Mac to be able
to make a client connection by name rather than by ip?
David
On Jul 4, 2007, at 3:11 PM, Hugo Jackson wrote:
> wxIPV4address.Hostname() accepts either an address in either dot
> quad notation or a fully qualified domain name, and works equally
> well on the mac as the ip.
>
> however, on the mac you cannot bind an interface to a
> wxSocketServer, so you need to use wxIPV4address.AnyAddress() in
> order to set the address for a new instance of wxSocketServer.
>
>
> On Jul 4, 2007, at 1:54 PM, David Mathews wrote:
>
>> I have all my network code running on the Mac, but it can't call
>> back when finished by using the hostname like the PC versions can.
>> It works if I give it the current ip address, but this changes daily.
>>
>> Does anyone know how to make a hostname (machine name) work from
>> the Mac?
>> How to enable a Mac to find a machine by its network name rather
>> than current ip address?
>>
>> Thanks,
>> David
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: wx-users-unsubscribe at lists.wxwidgets.org
>> For additional commands, e-mail: wx-users-help at lists.wxwidgets.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wx-users-unsubscribe at lists.wxwidgets.org
> For additional commands, e-mail: wx-users-help at lists.wxwidgets.org
>
More information about the wx-users
mailing list