How to Read Ips in a Chat Applet
-
Apr 7th, 2010,03:47 AM #ane
Thread Starter
Fond Member
Read iP address in chat room
Hi,
when I am in a chat room I have a peer to peer connexion to some other
computer.Is it possible to read my chat partners ip address (Windows XP)?
-
April seventh, 2010,07:48 AM #2
Addicted Member
Re: Read iP address in conversation room
What kind of chat room?
Did you wrote one yourself using winsock or you mean similar msn messenger?
-
Apr 7th, 2010,08:08 AM #3
Thread Starter
Fond Member
Re: Read iP accost in chat room
-
Apr 8th, 2010,05:04 AM #4
Thread Starter
Addicted Fellow member
Re: Read iP address in chat room
No idea ?
The Office Im searching for does not take to return the
verbal IP address of my chat partner.It would exist fine, if i could get a list of ip addresses
my estimator is continued with.When i start the DOS tool "netstat.exe" on my
WinXP computer, I tin can list all my chat partners
ip adresses.This is how to first the DOS command:
=====================================
1 Windowskey + R (=run application)
2 enter "control.com"
3 enter "netstat -an"
4 Now, you can encounter your chat partner's ip address,
due east.grand. "Foreign Address 188.72.224.43:1938 ESTABLISHED"-How can I listing the ip adresses with Visual Basic ?
Final edited by vb.elmar; April 8th, 2010 at 05:08 AM.
-
Apr 20th, 2010,02:23 PM #five
Thread Starter
Addicted Member
Re: Read iP accost in chat room
-
Apr 20th, 2010,03:xiii PM #6
Re: Read iP accost in conversation room
You could redirect the netstat output to a file(though this takes time).
Wireshark or other applications are designed to sniff application'southward traffic. I couldn't tell you how to program 1 off the top of my head, though. Many are open source, and for windows, so check out which APIs they use to enumerate the connections. Many install a commuter which captures the traffic, simply you lot don't need all that if you merely want basic socket info similar addresses(I'm adequately confident such APIs be, equally least for connections using the MS winsock libraries, some raw connections can escape standard API detection, afaik, which is why most Sniffers use a depression-level network commuter, and then they grab all the connections).
SysInternals makes tools that do this, and you can unremarkably find explanations for how they piece of work if yous Google hard enough. Sometimes the download folio outlines the APIs used. But you'll have to do plenty of inquiry on them.
Last edited by FireXtol; Apr 20th, 2010 at 03:nineteen PM.
-
April 20th, 2010,03:23 PM #7
Hyperactive Fellow member
Re: Read iP accost in conversation room
you lot tin can redirect the output every bit FireXtol said similar this:
Code:
Shell "netstat -an > C:\MyFolder\MyIpFile.txt"
-
Apr 20th, 2010,03:49 PM #8
Re: Read iP address in chat room
Here is a modified version of a program I had that runs NETSTAT and parses its output. It redirects the output via an anonymous pipe, so you lot avert the crudeness of creating and reading deejay files.
In this example you set the constant MYPORT and it will report established connections to MYPORT and their foreign IP addresses.
It could easily be changed to log these to a file, etc. The only part you'd probably need to change is Form1.
The residuum of the project is reusable components you can treat equally a black box much as you lot would a precompiled OCX. The ShellPipe control has comments documenting its apply.
-
Jun 22nd, 2015,02:13 PM #nine
New Member
Re: Read iP address in conversation room
Originally Posted past dilettante
Lawmaking:
Equally Any is not supported in Declare statements.
Code:
Private Declare Part CreatePipe Lib "kernel32" (ByRef phReadPipe As Integer, ByRef phWritePipe As Integer, ByRef lpPipeAttributes Equally Whatever, ByVal nSize As Integer) Every bit Integer
Code:
Private Declare Function ReadFile Lib "kernel32" (ByVal hFile As Integer, ByVal lpBuf As String, ByVal nNumberOfBytesToRead As Integer, ByRef lpNumberOfBytesRead As Integer, ByVal lpOverlapped Every bit Any) Equally Integer
Lawmaking:
Private Declare Role WriteFile Lib "kernel32" (ByVal hFile As Integer, ByVal lpBuf Equally Cord, ByVal cToWrite As Integer, ByRef cWritten As Integer, ByVal lpOverlapped As Any) As Integer
Thanks in advance.
-
Jun 22nd, 2015,02:nineteen PM #10
Re: Read iP accost in conversation room
How does information technology piece of work here on VBForums? I come across where a fellow member displays your Bone and IP Address
Anything I mail is an case just and is non intended to exist the merely solution, the full solution nor the terminal solution to your asking nor do I claim that it is. If you lot find it useful then it is entirely upwardly to you to brand any changes necessary you feel are acceptable for your purposes.
-
Jun 22nd, 2015,02:35 PM #xi
Re: Read iP address in chat room
Originally Posted past Jack_NL
As for downgrading from a real compiled language to i of the .Internet scripting languages goes... you'd probably have to ask nigh that in a .Net forum.
Originally Posted past jmsrickland
yokoyamawhispiever.blogspot.com
Source: https://www.vbforums.com/showthread.php?610319-Read-iP-address-in-chat-room
Post a Comment for "How to Read Ips in a Chat Applet"