|
Visual Basic questions
|
| Author |
Message |
LaserJohn
Contributor
   
Posts: 178
Group: Contributors
Joined: Mar 2006
Status:
Offline
|
RE: Visual Basic questi
One more question... Does any one know how to make a program so that it can find a pingers IP address?

LG LAPTOP S1 EXPRESS PRO DUO.:. CORE 2 DUO 1.8 GHz.:.ATI RADEON MOBLITY X1600 512 MB DDR II .:.160 GB SATA HDD.:.1024 MB DDR II RAM @ 667 MHz
|
|
| 10-06-2006 07:44 AM |
|
 |
ATravelingGeek
Registered
Posts: 35
Group: Registered
Joined: Sep 2006
Status:
Offline
|
RE: Visual Basic questi
I don't know how easy that would be do implement - it would involve interfacing with the networking code on a low level. If you know someone is pinging you, it might be worth a shot to run netstat in command prompt and try to guess which IP is theirs, but as far as I know there's no easy way to tell from inside an app.
MacBook Pro / 2.0 GHz Intel Core Duo / 1.5Gb DDR2 SDRAM / Radeon Mobility X1600 128MB / Mac OS X 10.4 and Win XP Pro (Dual boot)
|
|
| 10-08-2006 06:57 PM |
|
 |
LaserJohn
Contributor
   
Posts: 178
Group: Contributors
Joined: Mar 2006
Status:
Offline
|
RE: Visual Basic question
Thanks for the answer... Let me explain exactly what i'm looking for.... Suppose i send something to someone... he opens it... Now my program pings my IP address on some port... I need to have a program here that can find out the IP address from which My other program pinged from... Well... i think you get the general idea... Thanks anyway...

LG LAPTOP S1 EXPRESS PRO DUO.:. CORE 2 DUO 1.8 GHz.:.ATI RADEON MOBLITY X1600 512 MB DDR II .:.160 GB SATA HDD.:.1024 MB DDR II RAM @ 667 MHz
This post was last modified: 10-09-2006 09:10 AM by LaserJohn.
|
|
| 10-09-2006 09:08 AM |
|
 |
ATravelingGeek
Registered
Posts: 35
Group: Registered
Joined: Sep 2006
Status:
Offline
|
RE: Visual Basic questi
I think I understand the idea. The easiest way would be for the person you send it to just to give you the IP of his/her machine. If that's not possible (for whatever reason), then you should look into WinSock - it's a compleate object for doing almost everything networking-wise. There's lots of documentation on how to use it, and it'd be *much* easier than trying to get the ip of the remote machine actually pinging you. With winsock, you'd create an app that listened on your machine, and it would display the IP of whatever machine tries to connect to your IP/port via the remote program.
Hopefully the above made sense - if not I can attempt to explain it more. Also, check out PlanetSourceCode.com - they have lots of great tutorials and sample code for you to look at and try.
MacBook Pro / 2.0 GHz Intel Core Duo / 1.5Gb DDR2 SDRAM / Radeon Mobility X1600 128MB / Mac OS X 10.4 and Win XP Pro (Dual boot)
|
|
| 10-09-2006 11:33 AM |
|
 |
LaserJohn
Contributor
   
Posts: 178
Group: Contributors
Joined: Mar 2006
Status:
Offline
|
RE: Visual Basic questi

LG LAPTOP S1 EXPRESS PRO DUO.:. CORE 2 DUO 1.8 GHz.:.ATI RADEON MOBLITY X1600 512 MB DDR II .:.160 GB SATA HDD.:.1024 MB DDR II RAM @ 667 MHz
|
|
| 10-09-2006 12:25 PM |
|
 |
ATravelingGeek
Registered
Posts: 35
Group: Registered
Joined: Sep 2006
Status:
Offline
|
RE: Visual Basic questi
No problem - if you need any more help just post and I'll try to do the best I can. You also might want to look up dynamic DNS servers so even if your IP changes your subdomain (often free, such as whatever.no-ip.com ) will always point to your current IP.
MacBook Pro / 2.0 GHz Intel Core Duo / 1.5Gb DDR2 SDRAM / Radeon Mobility X1600 128MB / Mac OS X 10.4 and Win XP Pro (Dual boot)
|
|
| 10-09-2006 12:41 PM |
|
 |
LaserJohn
Contributor
   
Posts: 178
Group: Contributors
Joined: Mar 2006
Status:
Offline
|
RE: Visual Basic questi
On more question... I've made a fairly simple chat program... the program connects with others using Ip address or hostname... Is it possible to send a message to someone on a netowork using just their username? I need the program to find out the Ip address of the computer in which a user is logged on...
Do u think its even possible?

LG LAPTOP S1 EXPRESS PRO DUO.:. CORE 2 DUO 1.8 GHz.:.ATI RADEON MOBLITY X1600 512 MB DDR II .:.160 GB SATA HDD.:.1024 MB DDR II RAM @ 667 MHz
|
|
| 10-22-2006 12:53 PM |
|
 |
fabiank22
dreamer
  
Posts: 155
Group: Beta Discussion Members
Joined: Jul 2006
Status:
Offline
|
RE: Visual Basic questi
On more question... I've made a fairly simple chat program... the program connects with others using Ip address or hostname... Is it possible to send a message to someone on a netowork using just their username? I need the program to find out the Ip address of the computer in which a user is logged on...
Do u think its even possible?
If I understood you right you were talking about s.th. any Instant Messaging-Tool like ICQ does. So why not use that instead.
There are Open-Source-Tools out there doing such things, like Miranda. And with Miranda IM you can get through Firewalls by setting the Port to 80.
This post was last modified: 10-22-2006 05:08 PM by fabiank22.
|
|
| 10-22-2006 05:04 PM |
|
 |
meo
Registered
Posts: 84
Group: Registered
Joined: Sep 2006
Status:
Offline
|
RE: Visual Basic questi
Well sending a message to someone on a (local) network is simple as opening a dos box en giving the command: net send [computer_name] message.
Well only if you want to keep it very simple, you could make a program who's just giving this command to a dos box, and voila there is your first very simple chat application.
|
|
| 10-23-2006 04:50 PM |
|
 |
LaserJohn
Contributor
   
Posts: 178
Group: Contributors
Joined: Mar 2006
Status:
Offline
|
RE: Visual Basic questi
Thanks for that! But you see... DDE is usually is disabled on most intranets due to security reasons...(At least in the country where i'm staying)... So i'm used the winsock control instead...
I'll post my source code here.... *If* you guys ask for it...

LG LAPTOP S1 EXPRESS PRO DUO.:. CORE 2 DUO 1.8 GHz.:.ATI RADEON MOBLITY X1600 512 MB DDR II .:.160 GB SATA HDD.:.1024 MB DDR II RAM @ 667 MHz
|
|
| 10-24-2006 07:32 AM |
|
 |
@ruantec-Man
Emu Author
     
Posts: 43
Group: Emu Authors
Joined: Feb 2007
Status:
Offline
|
RE: Visual Basic questi
it shouldn´t be hard to do.. just as you sayd using the Winsock control will allow you to do that.
Current development tools:
Visual C++.net, Visual C#.net
Visual VB.net, Visual Webdeveloper.net
Bloodshed Dev C++, Borland C++
Visual Basic 6
PC: Intel® Core™2 Quad Processor Q6600 -C0- SLACR! @ 2900MHZ,4096MB DDR2 1066,Geforce 8800GTS 640MB
OS:Vista X64 Home premium, OSX Leopard
|
|
| 07-12-2007 02:52 AM |
|
 |
LaserJohn
Contributor
   
Posts: 178
Group: Contributors
Joined: Mar 2006
Status:
Offline
|
RE: Visual Basic questions
You all must have noticed that initiating a winsock control on a form ( Without adding any firewall rules to the default windows firewall) will cause an alert in both the windows firewall and any other profesisonal firewall s/w
So.... I recently got this custom VB socket control "Csockets".... I havent exactly tested this out yet... But i guess that it wont (atleast) alert the windows firewall....
Does anyone know any other custom VB sockets?... It would be good if we could come up with this list of custom sockets... you know.. that could atleast.. just maybe.. by default... bypass most firewalls...
and btw... if anyone's interested in seeing the code for manually adding firewall exception in windows XP SP2 & higher including all versions of vista... ask me...Although i didnt make it... it it easier to simplely upload it here than to search and download it...

LG LAPTOP S1 EXPRESS PRO DUO.:. CORE 2 DUO 1.8 GHz.:.ATI RADEON MOBLITY X1600 512 MB DDR II .:.160 GB SATA HDD.:.1024 MB DDR II RAM @ 667 MHz
|
|
| 11-02-2007 07:20 AM |
|
 |
|
|