»
 

Go Back   ResellerRatings Store Ratings > ResellerRatings Forums > Tech Support

Reply
 
LinkBack Thread Tools Display Modes
Old 11-01-2003, 07:34 PM   #1 (permalink)
Registered User
 
Join Date: Aug 2002
Location: Meeshigan
Posts: 597
Ruler2112 is on a distinguished road
Kids Linux Script/App on Windoze

I'm trying to do what is described at the below link. In short, have a port at our firewall forwarded to a linux box inside our private network and have this machine running a script on a specific port that will allow users to use VNC to remotely control their PCs from anywhere on the internet.

I've got everything working perfectly (even though the code has changed significantly since 1998), but have run into a snag. (More-so even than the fiddling with C code and recompiling for the past 3 days that it took for me to get it working properly.) The people who will be controlling the machine remotely won't be using linux, so I have to modify the windoze source for the VNC viewer, plus get the rvnc script running on windoze too. I envisioned simply translating the script into a batch file and applying the same changes I made on the linux version to the windoze source, recompile, and be done with it. Bad assumtion on my part.

The rvnc script that I've translated into a batch file uses a read command, which DOS doesn't have. It also redirects standard I/O to accomplish the task, which DOS can't do. I have NetCat on my windoze box and can recompile TightVNC, but the VNC code is *way* different than the linux version- the files aren't even similarly named.

I'd be happy to provide any information needed for assistance. My boss would very much like to use this early this coming week, so a quick reply is appreciated, but I will be thankful for any replies that help.



The post on the topic is located at http://www.realvnc.com/pipermail/vnc...ne/001768.html

__________________
About 5% of the people in the world can't think.
Another 5% can think and do.
The remaining 90% can think, but don't.
Ruler2112 is offline   Reply With Quote
Old 11-01-2003, 10:17 PM   #2 (permalink)
Registered User
 
Join Date: Aug 2002
Location: Meeshigan
Posts: 597
Ruler2112 is on a distinguished road
I had a thought on this and think it may well work and be easier than performing modifications to the TightVNC application and using NetCat to shovel the data back and forth. I wrote a quick program in Delphi to connect to the proxy server and enter the machine name and port number of the system to control. What I'm thinking is to simply connect VNC to the loopback address, 127.0.0.1, on a port that the Delphi app has a TCP server component listening on. The Delphi app would then need to ship the data received from this TCP server component through a TCP client component over the network to the proxy server, which would take care of it from there. The Delphi app would then need to receive the responses back from the proxy server through the TCP client component and send them back through the TCP server component to the VNC program. This way, there would be no need to change the VNC program and all you'd need extra would be the Delphi app. Connect to the VNC proxy server through the internet, enter the name of the machine to control, enter the port that machine is listening on, then the Delphi app would activate a TCP server component and start up VNC to connect to that port number on the local machine.

The only problem I'm having with this is with the shoveling of the binary data back and forth. What I really need is simply a way to map a remote IP and port to the local IP and specific port. It doesn't even have to be in Delphi- I have a C/C++ compiler that I could use to write a stand-alone app that I would call from the Delphi app (nice and purty) to handle the data transfer. I just don't yet have the experience in network programming (especially C) to code up such an animal.

Anybody see any flaws in my logic? Anybody have experience or knowledge that they would like to share on this problem? (And now this really doesn't belong in the Linux forum anymore...)
__________________
About 5% of the people in the world can't think.
Another 5% can think and do.
The remaining 90% can think, but don't.
Ruler2112 is offline   Reply With Quote
Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Most Active Discussions

Recent Discussions

All times are GMT -6. The time now is 06:59 AM.