Hi Martin
It resolves to the loopback address.
But I think I read on the wiki that starting with FG 1.0, the address which
was used to identify the interface is not required anymore.
So, following that info, I've tested the following change and it seems to
work on both Ubuntu and Windows.
Could someone confirm this patch, and possibly apply to the fgrun
repository?
Thanks a lot,
Tom
On Mon, Sep 21, 2009 at 10:13 PM, Martin Spott <[email protected]>wrote:
> Hi Tom,
>
> Tom P wrote:
>
> > fgrun passes this parameter:
> > --multiplay=in,10,<hostname>,5000
> > but the hostname address cannot be resolved to the interface address.
>
> Did you check if, for example:
>
> # ~> ping <hostname>
>
> resolves properly ?
>
> Martin.
> --
> Unix _IS_ user friendly - it's just selective about who its friends are !
> --------------------------------------------------------------------------
>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry® Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9-12, 2009. Register now!
> http://p.sf.net/sfu/devconf
> _______________________________________________
> Flightgear-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/flightgear-devel
>
Index: src/wizard_funcs.cxx
===================================================================
--- src/wizard_funcs.cxx (revision 517)
+++ src/wizard_funcs.cxx (working copy)
@@ -1613,9 +1618,7 @@
str << "out,10," << host << "," << out;
prefs.set("multiplay1",str.str().c_str());
str.str("");
- char hostname[256];
- gethostname( hostname, 256 );
- str << "in,10," << hostname << "," << in;
+ str << "in,10,," << in;
prefs.set("multiplay2",str.str().c_str());
}
update_options();
@@ -1634,9 +1637,7 @@
str << "out,10," << host << "," << out;
prefs.set("multiplay1",str.str().c_str());
str.str("");
- char hostname[256];
- gethostname( hostname, 256 );
- str << "in,10," << hostname << "," << in;
+ str << "in,10,," << in;
prefs.set("multiplay2",str.str().c_str());
update_options();
}
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Flightgear-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/flightgear-devel