The VNC viewer is always randomized, same as any TCP/IP application. A random port is selected from the source application. A connection is attempted to the 'listening sever' on it's fixed port. The server then establishes the connection between the random client initiated port and the fixed listening port.
The problem is with your school's network and them 'blocking' outbound connection to ports other than 80 (and probably 443 for secure https). Now, worse would be that they are not 'blocking' port numbers, but actual doing packet shaping and inspection. The moment they detect a VNC packet, they drop it. Forget about modifying the source of the viewer... That's not the problem, or else no web browsing would work (you didn't modify the source for IE, right ?) Change the listening port on your server to port 80 and give it a shot. If the school is simply blocking everything but port 80 (really insecure IMHO) then you found a 'workaround' If that doesn't work, then open up the java port and give that a try, which should establish a connection encapsulated inside an http header. If that doesn't work either, you might have to create a VPN tunnel between your school and home (and even then that might still be blocked), else you'll be SOL... My .02... Vishal Madhvani wrote: > Hi, > I'm trying to connect to my VNC server at home from my school computers. > The server is setup correctly as I can connect from pretty much anywhere else > except from school. > I had a chat with the Network Manager and he told me all outbound ports except > a very few such as port 80 are blocked. > > After using netstat and googling, I found out that the VNC Viewer port is > randomised. > I did download the source code and had a look to see if I could hard code the > port but had no luck. > > Can any one shed some light on how I could go about hard coding the port? > > Thank you > > > > > > _________________________________________________________________ > Share what Santa brought you > https://www.mycooluncool.com > _______________________________________________ > VNC-List mailing list > [email protected] > To remove yourself from the list visit: > http://www.realvnc.com/mailman/listinfo/vnc-list > -- 0(((=((===000(((=========================================== [demime 1.01d removed an attachment of type text/x-vcard which had a name of stella.vcf] _______________________________________________ VNC-List mailing list [email protected] To remove yourself from the list visit: http://www.realvnc.com/mailman/listinfo/vnc-list
