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

how to get ip address through port

what do i have to do to get the IP address connected to my computer on a certain port, after i provide the port number.
Jan 19 '09 #1
6 3207
Plater
7,872 Expert 4TB
What?
Do you want to allow connects to a port on your computer?
Jan 19 '09 #2
uogen
18
hi
i cann't understand you but if you want ip address
right click on my network connection-->properties-->choose view status of this connection -->details
Jan 19 '09 #3
remote computer is already connected to a certain port and i know that port number
now i want to find out whats the IP address of that remoate computer

like netstat command in windows
where a list of IP addresses and ports is shown

Proto Local Address Foreign Address State
TCP pcname:1027 FLH1Adu111.tky.mesh.ad.jp:58597 ESTABLISHED

by giving 1027 as port number i want to be able to get FLH1Adu111.tky.mesh.ad.jp

i hope i have made my question clear
thanks
Jan 19 '09 #4
Plater
7,872 Expert 4TB
Ahh ok, so you want to know the IP address of a computer that is talking to yours, based on the port number.
Hmm. Not sure I know how to do that without processing netstat's output
Jan 19 '09 #5
is it even possible in c# or vb.net
Jan 24 '09 #6
Plater
7,872 Expert 4TB
@zahid313
Not directly I don't think. Pretty sure you will have to use the Process class and get the output of netstat for it.
There might be some Win32_API you can use for it, but I don't know it.
Jan 26 '09 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

21
by: Alexander N. Spitzer | last post by:
If I have a machine with 3 virtual IP addresses (192.168.1.), how can I start 3 instances of the same RMI application (each started with different properties/configs), each listening on the port...
15
by: qazmlp | last post by:
What is the best & fastest way of validating an IPv4 address? Basically, the input can be either in IPAddressv4 or IPAddressv4:port format. Currently I have the following code to validate the...
0
by: Gregory Hassett | last post by:
Hello, I want to periodically send a TCP packet to a peer, always from the same source port. That is, each packet will come from my local ip address, port 8801, and go to the peer's ip address,...
3
by: D. André Dhondt | last post by:
In VB.NET 2003, is there a way to create a System.Net.Sockets.UDPClient to listen to any address AND any port? I can get it to listen to any address, but only if I specify a port (for example,...
0
by: bryce_li | last post by:
Hello I am looking for the best architectural pattern in using the SOAP:address location: Hardcode the real endpoint or use localhost (in our company on an Intranet site) >From what I can see...
4
by: andreas.w.h.k. :-\) | last post by:
How do I change the address location in the wsdl <wsdl:port name="SearchSoap12" binding="tns:SearchSoap12"> <soap12:address location="http://searchservices/engine/search.asmx" /> </wsdl:port> ...
3
by: GavinM | last post by:
I have the same question as andreas.w.h.k asked on 1/5. Our configuration is as follows: The client must use the URL https://clustername.xyz.com/webservice.asmx to access this web service. ...
0
by: deepak | last post by:
Hi All, i m develpoing a .net Window application which has 4 texboxes(tbxURLmfor URL in URL Frame,tbxAddress for address in Proxy server frame,tbxPort for port in proxy server...
6
by: Nicolas Noakes | last post by:
Hello, I would like to convert to following process to code. Any advice is welcome. I have a hardware device which requires the this procedure to set it's IP address. First create an static...
1
by: zahid313 | last post by:
what do i have to do to get the IP address connected to my computer on a certain port, after i provide the port number. remote computer is already connected to a certain port and i know that...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.