473,387 Members | 1,745 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

WCF: How to disable remote connections

Hi!

I'm developing a self-hosted WCF service running on client machines for
interprocess-data exchange using netTcpBinding.

For security reasons i'd like to configure the service in a way it only
accepts local connections.

Does anybody know how this can be done?

Thanks a lot in advance for any hint!

Greetings

Markus
Jan 14 '08 #1
2 3021
Markus,

Make the service listen on 127.0.0.1 (http://localhost). That should make it
visible to local machine only.

Tiago Halm

"Markus Strobl" <m.******@racon-linz.atwrote in message
news:OX**************@TK2MSFTNGP02.phx.gbl...
Hi!

I'm developing a self-hosted WCF service running on client machines for
interprocess-data exchange using netTcpBinding.

For security reasons i'd like to configure the service in a way it only
accepts local connections.

Does anybody know how this can be done?

Thanks a lot in advance for any hint!

Greetings

Markus

Jan 14 '08 #2
Hi Tiago,

thanks for your reply but actually this is what i'm doing right now but the
service accepts remote connections from everywhere.

My endpoint address is net.tcp://localhost:9010/ServiceName.

I would be looking for something like binding the service to the local
loopback adapter to make it invisible for connections from outside the local
machine (or something else to achive the expected behavior).

Best Wishes

Markus

"Tiago Halm" <th***@nospam.hotmail.comschrieb im Newsbeitrag
news:u8**************@TK2MSFTNGP02.phx.gbl...
Markus,

Make the service listen on 127.0.0.1 (http://localhost). That should make
it visible to local machine only.

Tiago Halm

"Markus Strobl" <m.******@racon-linz.atwrote in message
news:OX**************@TK2MSFTNGP02.phx.gbl...
>Hi!

I'm developing a self-hosted WCF service running on client machines for
interprocess-data exchange using netTcpBinding.

For security reasons i'd like to configure the service in a way it only
accepts local connections.

Does anybody know how this can be done?

Thanks a lot in advance for any hint!

Greetings

Markus


Jan 15 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: clintonG | last post by:
After discovering Cassini is crippleware I learned how to use Start Options to disable NTLM and enable support for the default web server on my XP Pro dev platform. Now all new projects are created...
0
by: savajx1 | last post by:
The programming task is to run a simulation model, as a distributed computing model, in the background on 250 departmental computers. I intend to allocate work (per machine) into say "5-10 cpu...
7
by: =?Utf-8?B?TW9iaWxlTWFu?= | last post by:
Hello everyone: I am looking for everyone's thoughts on moving large amounts (actually, not very large, but large enough that I'm throwing exceptions using the default configurations). We're...
1
by: =?Utf-8?B?QW5kcmV3?= | last post by:
Hello, friends, Just wonder what is the difference between WCF services and web services? WCF services is a kind of web services, or, web services is a kind of WCF services? Or just two...
3
by: maciek kanski | last post by:
Hello I have running WCF service (config below) hosting in just console application - because I've used InstanceContextMode.Single and ConcurrencyMode.Multiple and no Throttling I expect that 10...
1
by: =?Utf-8?B?aGVyYmVydA==?= | last post by:
Question 1: How do I turn off WCF security to get my apps out the door quickly? Question 2: Where can I find a step by step article/flowchart how to configure WCF security (the WCF books miss this...
0
by: =?Utf-8?B?UmF2aQ==?= | last post by:
Hi, I have WCF service and integrated with STS (WS-Federation). The Service exposes 5 endpoints Win, UNT and Federated Windows, Federated UNT and Mex endpoint. My STS Service exposes 3 endpoints...
7
by: =?Utf-8?B?QmlsbHkgWmhhbmc=?= | last post by:
我们现在遇到一个问题,通过wcf创建的webservice,选择windows service作为宿主,采用java作为客户端调用成功,但是无法使用asp.net ajax调用。...
1
by: lmod | last post by:
I am developing an application using WPF and WCF. This app on the server side will need for WCF services hosted in IIS6 to communicate with WCF services that are hosted as Windows services on the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.