473,803 Members | 4,139 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

TCPIP Client/Listener for undetermined server address

I will be distributing an application that works with our
security panel. The application can be loaded on several
workstations in a network but only one workstation
actually communicates via serial port or tcpip with the
security panel. I modified the client chat sample that
you have in your .net tcpip samples so that I can send
info back and forth between the main (polling)
workstation and any other workstations. The info is not
keyed by users but emanates from communication with the
panel.

The problem I found is this; the sample works if you know
the tcpip address or workstation name of the server as it
is used in the following line of code

client = New TcpClient("PE30 0", PORT_NUM)

In this case PE300 is the workstation name of the server
side.

Is there a way to dynamically find out the names or tcpip
addresses of workstations listening on a known port
number. This is needed because I have no way to know the
names or tcpip addresses of our clients' computers on the
network. Thanks.
Jul 19 '05 #1
3 2578
You could have a function in the server that would poll
or do a port scan on the port required. Collect a list of
workstations from the active directory and run the
function.
-----Original Message-----
I will be distributing an application that works with oursecurity panel. The application can be loaded on several
workstations in a network but only one workstation
actually communicates via serial port or tcpip with the
security panel. I modified the client chat sample that
you have in your .net tcpip samples so that I can send
info back and forth between the main (polling)
workstation and any other workstations. The info is not
keyed by users but emanates from communication with the
panel.

The problem I found is this; the sample works if you knowthe tcpip address or workstation name of the server as itis used in the following line of code

client = New TcpClient("PE30 0", PORT_NUM)

In this case PE300 is the workstation name of the server
side.

Is there a way to dynamically find out the names or tcpipaddresses of workstations listening on a known port
number. This is needed because I have no way to know the
names or tcpip addresses of our clients' computers on thenetwork. Thanks.
.

Jul 19 '05 #2
The problem is not on the server side but the client
side. The client workstations must know the wktsn server
address or name.
-----Original Message-----
You could have a function in the server that would poll
or do a port scan on the port required. Collect a list ofworkstations from the active directory and run the
function.
-----Original Message-----
I will be distributing an application that works with

our
security panel. The application can be loaded on severalworkstation s in a network but only one workstation
actually communicates via serial port or tcpip with the
security panel. I modified the client chat sample that
you have in your .net tcpip samples so that I can send
info back and forth between the main (polling)
workstation and any other workstations. The info is not
keyed by users but emanates from communication with the
panel.

The problem I found is this; the sample works if you

know
the tcpip address or workstation name of the server as

it
is used in the following line of code

client = New TcpClient("PE30 0", PORT_NUM)

In this case PE300 is the workstation name of the serverside.

Is there a way to dynamically find out the names or

tcpip
addresses of workstations listening on a known port
number. This is needed because I have no way to know thenames or tcpip addresses of our clients' computers on

the
network. Thanks.
.

.

Jul 19 '05 #3
Hi Bob,

I suggest that you can use UDP to broadcast the server's name/ip
periodically when the server is listening on a port. Please refer to the
MSDN article on "Using UDP Services" at
http://msdn.microsoft.com/library/de...us/cpguide/htm
l/cpconusingudpse rvices.asp

Hope this helps.

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! ¨C www.microsoft.com/security
This posting is provided ¡°as is¡± with no warranties and confers no rights.
Jul 19 '05 #4

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

Similar topics

2
47049
by: NotNeo | last post by:
I am getting a strange symptom: tnsping and sqlplus work fine on my LINUX server (neo) so the listener and DB are OK. However, from my remote XP Client (tank) I get TNS-12560. I can ping the neo from tanks and tank from neo so it isn't a network problem. The trace file shows that in can't start the transport layer due to an error 530: Tns error struct: nr err code: 0 ns main err code: 12560 TNS-12560: TNS:protocol adapter error
4
6744
by: rs | last post by:
how I the client tell the server that the socket is closed? or this there an even that informs the server that the clients socket is close? Oh, I am using vb.net 2003 Thanks
3
1715
by: Geoff | last post by:
I need to keep a few VB6 tcpClients active, but have them talk to a dotNet tcpServer/tcpListener. The "Server"/Listener is running as a Plugin, and needs to respond to "outside requests". The dotNet versions of the exe's that make these requests take MUCH longer to load and start than the VB6 versions, so I'd like to keep the VB6 versions active (at least until the dotNet versions will load more quickly). Is there a way for these...
3
384
by: Bob Harrison | last post by:
I will be distributing an application that works with our security panel. The application can be loaded on several workstations in a network but only one workstation actually communicates via serial port or tcpip with the security panel. I modified the client chat sample that you have in your .net tcpip samples so that I can send info back and forth between the main (polling) workstation and any other workstations. The info is not keyed...
3
4202
by: TulasiKumar | last post by:
hi all, My requirment is i want to listen one perticular TCPIP port for one IPAddress,Wheneverver the data in coming to this port that data i will be save one text file..For example:www.msdn.microsoft.com is fixed with some TCPIP port.Whene ever data is coming in to the TCPIP that data i will be saved one text file.I have done the code regrading my requirement.Whenever i have started my listner class it was giving one exception ,the...
13
28783
by: Sandeep Singh | last post by:
I am making socket client application in C# how can i get ip address of client who has connected to server
14
4453
by: Ankit Aneja | last post by:
The code of classes given below is for server to which clients connect i want to get ip address of client which has connected pls help how can i get //listen class public class listen {
2
6880
by: Macca | last post by:
My app has an asynchronous socket server. It will have 20 clients connected to the server. Each client sends data every 500 millisecondsThe Connections once established will not be closed unless there is a problem with the connection. I need to know which client has sent the incoming data as each client has its own buffer on my "server" app. I am using the standard asynch socket code from MSDN to listen for connections and they...
3
8207
by: RFD | last post by:
I've been slaving at this problem for over a week, and would appreciate some help from you kind folks. Basic Problem: I have made a server program and a client program. When I try to use the client to connect to 127.0.0.1 or my LAN IP, the program connects and transfers information successfully. However, when I get somebody else to host the server, or when I try to connect to a server on my own machine using my WAN IP, I currently get a...
0
9699
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9562
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10542
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10309
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10068
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9119
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
4274
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3795
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2968
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.