[erlang-questions] Problems when running distributed pingpong

Jiansen He jiansenhe@REDACTED
Thu Oct 7 01:19:55 CEST 2010


I tried adding both lines to both machines.  It still doesn't work.
Besides, can I bind two host names to the same IP in the same line?  It
doesn't looks like the form of sample binding.

In addition, instead of changing the hosts file, could I "locally" change
the IPs/hostnames binding inside erlang?

Regards
Jiansen



On Wed, Oct 6, 2010 at 8:04 PM, Ahmed Omar <spawn.think@REDACTED> wrote:

> Yes, you could try adding both machines IPs/hostnames combinations there
> so something like :
> 95.175.140.5    dyn-95-175-140-3        dyn-95-175-140-3.inuknetworks.com
>
> 95.175.140.3    dyn-95-175-140-5        dyn-95-175-140-5.inuknetworks.com
>
>
> On Wed, Oct 6, 2010 at 8:53 PM, Jiansen He <jiansenhe@REDACTED>wrote:
>
>>
>> Windows
>>
>> # Copyright (c) 1993-2009 Microsoft Corp.
>> #
>> # This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
>> #
>> # This file contains the mappings of IP addresses to host names. Each
>> # entry should be kept on an individual line. The IP address should
>> # be placed in the first column followed by the corresponding host name.
>> # The IP address and the host name should be separated by at least one
>> # space.
>> #
>> # Additionally, comments (such as these) may be inserted on individual
>> # lines or following the machine name denoted by a '#' symbol.
>> #
>> # For example:
>> #
>> #      102.54.94.97     rhino.acme.com          # source server
>> #       38.25.63.10     x.acme.com              # x client host
>>
>> # localhost name resolution is handled within DNS itself.
>> #    127.0.0.1       localhost
>> #    ::1             localhost
>>
>>
>> Mac
>>
>> ##
>> # Host Database
>> #
>> # localhost is used to configure the loopback interface
>> # when the system is booting.  Do not change this entry.
>> ##
>> 127.0.0.1    localhost
>> 255.255.255.255    broadcasthost
>> ::1             localhost
>> fe80::1%lo0    localhost
>>
>>
>> Shall I write something to the host file?
>>
>> Many thanks
>> Jiansen
>>
>>
>>
>>
>>
>> On Wed, Oct 6, 2010 at 7:16 PM, Ahmed Omar <spawn.think@REDACTED> wrote:
>>
>>> It seems to me like a problem with your hosts file (on Mac /etc/hosts, on
>>> windows %systemroot%\system32\drivers\etc\ )
>>>
>>> could you please post it here?
>>>
>>> On Wed, Oct 6, 2010 at 5:22 PM, Jiansen He <jiansenhe@REDACTED>wrote:
>>>
>>>> net:gethostbyaddr('95.175.140.20').
>>>>
>>>
>>>
>>>
>>> --
>>> Best Regards,
>>> - Ahmed
>>> http://nl.linkedin.com/in/adiaa
>>>
>>
>>
>
>
> --
> Best Regards,
> - Ahmed
> http://nl.linkedin.com/in/adiaa
>


More information about the erlang-questions mailing list