LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   IRC port is blocked (https://www.linuxquestions.org/questions/programming-9/irc-port-is-blocked-4175413087/)

danoc93 06-24-2012 02:58 AM

IRC port is blocked
 
Hi guys, I developed a chat application as a project for my Java class... the problem is that I didn't know the port 6667 would be blocked (along with all ports over 2000) in my college when I proposed that project... it is too late to change it since it's due the next week and I have it working perfectly in my house and other places...

My teacher didn't help me at all. He said it wasn't his problem (really nice of him)... :/ I also went to talk to the Technology Services Desk but they said it would require a lot of trouble and papers (yeah, that college sucks)...

So what I am asking is if there is any way to bypass the connection...

I connect using a Socket that connects to the irc.freenode.net:6667, but I am wondering if I can do some sort of connection through a proxy that doesn't have its port blocked...

For example connect using ircproxytofreenode.com:331

Or am I condemned to get a 0 in my project?

CTM 06-24-2012 08:14 PM

If you have shell access to another machine running an OpenSSH daemon that has unfirewalled access to Freenode, you can tunnel your connection to Freenode via that machine. On your machine running the chat client:

Code:

ssh -N -L 331:irc.freenode.net:6667 [HOST]
Where [HOST] is the hostname of the other machine. You can then provide 127.0.0.1:331 as the address in the constructor for your socket. I don't think Freenode does any aggressive probing for open relays when you connect, so it should work.


All times are GMT -5. The time now is 09:21 AM.