G'day all,
I'm about to restart my development project (I lost my entire RAID store a
month ago and all my dev code is lost), but I wanted to ask for some help
BEFORE I did myself in too deep!
I'm using a simple UDP (that's right, _not_ TCP!) windows app that I need to
send small, simple packets to and from my main system to a security module.
The system has 2 NICS : NIC1 (static IP 192.168.0.2) is connected to my
gateway PC via a switch, and that's routed to my ISP via the gateway.
NIC2 (static IP 10.10.10.1) is connected to the module (IP 10.10.10.10) and
this is the ONLY device on that network.
Neither network has ANY kind of firewall or filter, this is completely
unprotected, which is why I hide behind a very strong gateway!
What I can't seem to get working is the Synapse UDP send/receive. I can send
packets without errors, and the module appears to receive them (the activity
LED flashes and it only flashes when I actually send these packets), but I
never, ever, receive anything back from the module. Wireshark tells me it's
returning the data to my IP and port number, but I just can't see it in
Synapse event handler for received packets.
I suspect that I need to somehow bind the UDP socket to the specific adapter
(i.e. NIC2), but I don't know how to do that correctly!
Previously, I used a TUDPSocket component in D6, with some LAN Adapter ID
software (from Torry or Delphi3000) to help choose the NIC, MAC address, and
listening port (which is fixed), but that was very unstable and I had a lot
of problems with reliably connecting. But once I got "connected" (i.e. I
sent and received one packet) I could then use the MAC address of the
adapter to communicate with the module perfectly.
That hasn't happened with Synapse, unfortunately, and the previous
suggestions (read the TCP example) doesn't help me at all in any way. The
problem for me (I think!) is that the module sends the data to the IP
address I specify as the local host, but it seems to send it to the wrong
MAC address. I think that's where I'm going wrong, but I don't want to have
to manually enter the MAC address each time I start the app, since there's
no guarantee I won't upgrade the NIC on that network. So if it's possible,
I'd like to use Synapse to present a list of adapters, select the adapter I
want to use, then use Synapse to use that adapter from then onwards.
If anyone could give me some help understanding what I need to set up,
configure, and use to be able to see the module, send it packets, and
receive packets asynchronously, I would very much appreciate the help.
This _should_ be simple, but for some reason, it's not working out that way.
I'm running win7 x64 (RC1 build 7100), but I also have some development
systems running WinXP x32, WinNT 4.0, and Win95 in virtual machines. I'd be
happy to run the app on the real (physical) XP Pro x32 gateway PC - but
again, that implies a third NIC in that system, and I'm still going to have
to select or specify the appropriate NIC anyway.
Any advice or suggestions are most welcome! And of course, when I get it
running, I'll be very happy to post the working code to help anyone else.
Cheers,
PC Pete
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
synalist-public mailing list
synalist-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synalist-public