473,396 Members | 1,755 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,396 software developers and data experts.

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("PE300", 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 2546
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("PE300", 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 severalworkstations 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("PE300", 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/cpconusingudpservices.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
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...
4
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
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...
3
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...
3
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...
13
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
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
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...
3
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...
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
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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,...

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.