 |
|
 |
Hello,
Not sure if this is the right place for this question, but I hope someone will be able to help me.
Using C++ (not MC) and vs 2005 - how can I find the IP address that is visible as my computer from outside my house.
At the moment, I am using www.whatismyip.com - but what if I wnated to do it programatically - from within my program
Cheers
Alex
|
|
|
|
 |
|
 |
You need Client and Host. Host shoud connect to client and client shoud send your ip to host
|
|
|
|
 |
|
 |
The SendARP function only gets first 4 bytes of the MAC returned correctly, the pMacAddr[0] is filled with correct MAC, but pMacAddr[1] never changes from the default value. Any one has an idea how to fix it?
|
|
|
|
 |
|
 |
Problem solved. I need to call SendARP with Uint64 for MAC address.
|
|
|
|
 |
|
 |
hi .thanks for this article
how i can understand that , which website(url) was opened in computer?
or
which website(url) is opene in computer now
thanks.
maysam_mici@yahoo.com
|
|
|
|
 |
|
 |
Could you please convert to VS2005 because I keep getting errors while trying to debug and run... I can't debug it because of one error:"The call is ambiguous between the following methods or properties: 'System.Math.Floor(decimal)' and 'System.Math.Floor(double)' FormScan.cs Line 1648 Column 28"
Sniper167
|
|
|
|
 |
|
 |
Hi,
Even I got same error when the project got converted to VS 2005.
I corrected it , You can type cast the error code with decimal
index = (int)System.Math.Floor((decimal)this.rnd.Next(this.al_full_scan_infos.Count));
Ranjan.D
|
|
|
|
 |
|
 |
index = (int)System.Math.Floor((decimal)this.rnd.Next(this.al_full_scan_infos.Count));
thank you
|
|
|
|
 |
|
 |
VS2005, I think that it is not very useful, i am waiting for the VS 2008.^_^.
111
|
|
|
|
 |
|
 |
I was going to give a thumbs up, but realized there are some serious threading issues with the VS 2003 source. BTW, i am using VS2005.
Two thumbs down!!!
Greg Cadmes
Greg cadmes
|
|
|
|
 |
|
 |
Hi,
Only multithreading troubles are present only with user interface. Other class can be used without changes.
I've tried it with VS 2005, and you're right, there's lot of multithreading troubles with Windows.Form due to Microsoft changes. A lot of them can be resolved by using microsoft solution (see msdn) but in easiest way, as a lot of access are done only to read interface text fields or option, you have to make new var for each field. It's quite long and boring. I will do it, but I've another project to finish taking 3 months, so I won't write a 2005 version before.
Another point you will notice, is that VS2005 install require SP2, and SP2 doesn't allow packet forging. For more informations see http://jacquelin.potier.free.fr/networkstuff/#known_troubles
Best regards
Jacquelin
|
|
|
|
 |
|
 |
good job. thank you very much
111
|
|
|
|
 |
|
 |
Hello,
Firstly - congrats on your efforts with this project!
Secondly, has anyone experienced any issues with packet generation on Windows XP SP2? I'm assuming the closure of Raw Sockets for sending might be related.
Can anyone confirm?
|
|
|
|
 |
|
 |
does it work behind a router
I can not get async to work behind a router
any idea's
thanks
|
|
|
|
 |
|
 |
Router should be transparent for all your computer network applications based on IP stack or upper. Check router config and if there's no firewall on it.
|
|
|
|
 |
|
 |
tcp/ip socket with proxy support using the great proxy library found in mentalis.org?
Regards,
unruledboy@hotmail.com
|
|
|
|
 |
|
 |
exception throws: missing types
in following source code lines:
this.stats_perf_counter_array=new System.Diagnostics.PerformanceCounter[10]
{
new System.Diagnostics.PerformanceCounter( "TCP","Segments Received/sec"),
new System.Diagnostics.PerformanceCounter( "TCP","Segments Sent/sec"),
new System.Diagnostics.PerformanceCounter( "IP","Datagrams Received/sec"),
new System.Diagnostics.PerformanceCounter( "IP","Datagrams Sent/sec"),
new System.Diagnostics.PerformanceCounter( "UDP","Datagrams Received/sec"),
new System.Diagnostics.PerformanceCounter( "UDP","Datagrams Sent/sec"),
new System.Diagnostics.PerformanceCounter( "ICMP","Messages Received/sec"),
new System.Diagnostics.PerformanceCounter( "ICMP","Messages Sent/sec"),
new System.Diagnostics.PerformanceCounter("Network Interface", "Bytes Received/sec", this.comboBox_stat_interface.Text),
new System.Diagnostics.PerformanceCounter("Network Interface", "Bytes Sent/sec", this.comboBox_stat_interface.Text)
};
something is missing in my windows 2003 server
Regards,
unruledboy@hotmail.com
|
|
|
|
 |
|
 |
Hi
PerformanceCounter is not supported by win98 and win CE (next version of networkstuff will avoid to throw error); but should be supported by 2003 server. To check available PerformanceCounter on your machine, just launch perfmon.msc (windows/run). Next, under system monitor, click the add button to add a graph: all available performance counter will be shown. you can use the perfom c# sample available in the msdn 2003 (PerfMon sample [C#] in the index). Tell me if some of counter are missing
Best regards
|
|
|
|
 |
|
 |
I am using win 2003! but I am not sure whether I have installed the performance counter, it is default installation of windows 2003
Regards,
unruledboy@hotmail.com
|
|
|
|
 |
|
 |
this.stats_perf_counter_array=new System.Diagnostics.PerformanceCounter[10]
{
new System.Diagnostics.PerformanceCounter( "TCPv4","Segments Received/sec"),
new System.Diagnostics.PerformanceCounter( "TCPv4","Segments Sent/sec"),
new System.Diagnostics.PerformanceCounter( "IPv4","Datagrams Received/sec"),
new System.Diagnostics.PerformanceCounter( "IPv4","Datagrams Sent/sec"),
new System.Diagnostics.PerformanceCounter( "UDPv4","Datagrams Received/sec"),
new System.Diagnostics.PerformanceCounter( "UDPv4","Datagrams Sent/sec"),
new System.Diagnostics.PerformanceCounter( "ICMP","Messages Received/sec"),
new System.Diagnostics.PerformanceCounter( "ICMP","Messages Sent/sec"),
new System.Diagnostics.PerformanceCounter("Network Interface", "Bytes Received/sec", this.comboBox_stat_interface.Text),
new System.Diagnostics.PerformanceCounter("Network Interface", "Bytes Sent/sec", this.comboBox_stat_interface.Text)
};
|
|
|
|
 |
|
 |
Hello Jacquelin,
I downloaded the VS 2002 code, builded the solution and got the following message: ...'arp_header.cs' could not be opened ('The system cannot find the file specified. ')
Please advise what I'm doing wrong?
Thanks, Roelf
|
|
|
|
 |
|
 |
just remove it from project. Arp can't be forge from windows API (windows just allows to access IP stack). It was a try before a removal. I do appoligize it still in vs2002 source code. Remember the vs 2002 project is no more maintained and still contains severals bugs removed in the 2003 projects.
Best Regards
Jacquelin
|
|
|
|
 |
|
 |
Hello Jacquelin,
I downloaded the VS 2002 code and got the following message:
arp_header.cs' could not be opened ('The system cannot find the file specified. ')
|
|
|
|
 |
|
 |
It could be a stupid question, but how could I display and act on the Routing Windows Table? My application must change Windows' routes, depending on running process. But I can't manage to do that!
I use the FX Beta 2.0...
Thanks for helpin'
|
|
|
|
 |
|
 |
take a look at MSDN SDK
"Routing Protocol Interface Functions"
AddInterface
ConnectClient
DeleteInterface
DisconnectClient
DoUpdateRoutes
GetEventMessage
GetGlobalInfo
GetInterfaceInfo
GetMfeStatus
GetNeighbors
InterfaceStatus
MibCreate
MibDelete
MibGet
MibGetFirst
MibGetNext
MibSet
MibSetTrapInfo
QueryPower
RegisterProtocol
SetGlobalInfo
SetInterfaceInfo
SetPower
StartComplete
StartProtocol
StopProtocol
UnbindInterface
If the routing protocol supports service handling, implement the following function in addition to those listed preceding:
DoUpdateServices
|
|
|
|
 |