Re: [Mono-dev] mono wcf

2012-08-01 Thread David Schmitt
On 01.08.2012 01:57, icorderi wrote: @Rob Yes localhost is translated to 127.0.0.1 on hosts. But regardless of that, if the wcf service is hosted as net.tcp://localhost:8081 it should work as expected. I would expect it to use localhost if localhost is specified. An easy workaround is to

Re: [Mono-dev] mono wcf

2012-08-01 Thread James Bellinger
On 7/31/2012 5:45 PM, icorderi wrote: Basically, when you host the wcf service on the console with a uri like net.tcp://localhost:8081 on a linux box the socket address is not bind to listen on 0.0.0.0:8081 instead it listens on 127.0.0.1:8081 essentially refusing all connections from other

Re: [Mono-dev] mono wcf

2012-08-01 Thread icorderi
David Schmitt wrote Isn't there a wildcard syntax or something like that? Hmm: Fourth hit on Google: http://stackoverflow.com/q/10649078/4918 The point is to replace host name in base address with * symbol (wildcard). It will be changed with actual host name in run time. Tested

Re: [Mono-dev] mono wcf

2012-08-01 Thread Rob Wilkens
On 08/01/2012 02:44 PM, icorderi wrote: David Schmitt wrote Isn't there a wildcard syntax or something like that? Hmm: Fourth hit on Google: http://stackoverflow.com/q/10649078/4918 The point is to replace host name in base address with * symbol (wildcard). It will be changed with

Re: [Mono-dev] mono wcf

2012-07-31 Thread icorderi
It *should *work but it *doesn't*. I'm facing the same issue described by hiking. Basically, when you host the wcf service on the console with a uri like net.tcp://localhost:8081 on a linux box the socket address is not bind to listen on 0.0.0.0:8081 instead it listens on 127.0.0.1:8081

Re: [Mono-dev] mono wcf

2012-07-31 Thread Rob Wilkens
I believe if you look up 'localhost' in your hosts file, it will translate it to 127.0.0.1 -- if your machine has another IP address or name, you should probably not specify localhost. I'm not saying it's not broken, but that's the way localhost usually translates to IP address form. -Rob On

Re: [Mono-dev] mono wcf

2012-07-31 Thread icorderi
@Rob Yes localhost is translated to 127.0.0.1 on hosts. But regardless of that, if the wcf service is hosted as net.tcp://localhost:8081 it should work as expected. An easy workaround is to change the config to net.tcp://machine name:8081. I can live with that workaround although localhost should

Re: [Mono-dev] mono wcf

2012-07-31 Thread Oskar Berggren
2012/8/1 icorderi icord...@msn.com @Rob Yes localhost is translated to 127.0.0.1 on hosts. But regardless of that, if the wcf service is hosted as net.tcp://localhost:8081 it should work as expected. But in many cases you specify localhost when you specifically do want to prevent

Re: [Mono-dev] mono wcf

2011-03-24 Thread Alex
Hi This scenario should work on Mono 2.8+, yes. Cheers, Alex 2011/3/23 hiking wanrong1...@gmail.com: hi,  i want to know if the mono works in the below situation.  i have a server writing by wcf:     static void Main(string[] args)        {            ServiceHost host = new

[Mono-dev] mono wcf

2011-03-23 Thread hiking
hi, i want to know if the mono works in the below situation. i have a server writing by wcf: static void Main(string[] args) { ServiceHost host = new ServiceHost(typeof(Foo)); NetTcpBinding binding = new NetTcpBinding(); binding.Security.Mode =

[Mono-dev] mono wcf

2011-03-23 Thread hiking
hi, i want to know if the mono works in the below situation. i have a server writing by wcf: static void Main(string[] args) { ServiceHost host = new ServiceHost(typeof(Foo)); NetTcpBinding binding = new NetTcpBinding(); binding.Security.Mode =