473,405 Members | 2,379 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,405 software developers and data experts.

tcplistener on multiple addresses

Is it possible to use a single tcplistener to bind multiple addresses?

Say I have three IP addresses and I want to bind two of the addresses
on port 4000, but not the
third.

Can I do this with a single component?

Thanks,

Jun 20 '06 #1
3 1948
TDC
I'm pretty sure it's all-or-one kind of choice. Though it's not that
hard to use several TcpListeners at once...

nt*******@sneakemail.com wrote:
Is it possible to use a single tcplistener to bind multiple addresses?

Say I have three IP addresses and I want to bind two of the addresses
on port 4000, but not the
third.

Can I do this with a single component?

Thanks,


Jun 20 '06 #2
So I need a tcpListener and listen thread for each IP address?

If I want to use the same listener routine for all the threads, can I
pass the tcpListener when I start the listener thread?

Thanks.

Jun 20 '06 #3

Correct and yes you can.

Mike.

<nt*******@sneakemail.com> wrote in message
news:11**********************@h76g2000cwa.googlegr oups.com...
So I need a tcpListener and listen thread for each IP address?

If I want to use the same listener routine for all the threads, can I
pass the tcpListener when I start the listener thread?

Thanks.


Jun 20 '06 #4

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

Similar topics

2
by: Keith Langer | last post by:
I have a TCPListener which needs to listen on my LAN IP as well as the loopback address. In VS.Net 2002 the TCPListener constructor could accept the port as an argument and it automatically bound...
0
by: ed | last post by:
Just a warning, I'm somewhat new to .Net. I'm working on a small TCP/IP server used to xfer files between machines over a network. Presently I'm using the TcpListener class with the below C++...
2
by: .Net Newbie | last post by:
Hello, I am currently coding my ASP.Net pages in c# and have run into a question concerning Emails. I have four objects on a page (six including 2 buttons). The first is a subject line...
1
by: cemcat | last post by:
Hello, We have an ASP.NET 2.0 (C#) web form that contains a textbox for users to enter multiple e-mail addresses separated by semicolons. We need to validate that each individual e-mail address...
5
by: Jerry Spence1 | last post by:
I have the following example of a tcpListener. I have a device external to my PC which is sending a TCP request on port 10002. This is working OK as I have a network sniffer on my PC and can see...
25
by: Fred | last post by:
Our server has 8 IPs with 121.232.21.1 as default (example). I wrote a windows service that downloads podcasts (mp3s) off the net. However every time this service runs it clogs down the entire...
2
by: =?Utf-8?B?Sm9uIEphY29icw==?= | last post by:
I use in vb (VS2005) Server = New TcpListener(PortNumber) Which is simple and straightforward. But I get Public Sub New(port As Integer) is obsolete: This method has been deprecated. Please...
1
by: Darwin | last post by:
Setting a server to listen on 8080 for incoming connections. Written in VS2005 on a Multi-homed machine. I get the warning: Warning 1 'System.Net.Sockets.TcpListener.TcpListener(int)' is obsolete:...
6
joedeene
by: joedeene | last post by:
hey, kinda confused, like when i use a thread and set its address of property to a sub that has a tcplistener starting in it or something with tcplistener, i can access other windows controls, like...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.