Programming :: Unable To Connect With Java Listener
Sep 26, 2010
I have a centos 5.5 machine. I have forwarded both port 22 and 8080 on my router. I can connect on 22 via telnet ip 22 and even can remotely login into the machine. The problem when I start my java listener program which is listening on 8080 it cant not establish any connection (via telnet ip 8080). I have even add this into the iptables too -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 9000 -j ACCEPT. I have disabled the SELINUX too.
I have forwarded both port 22 and 9000 on my router. I can connect on 22 and remotely login into the machine. The problem when I start my java listener program which is listening on 9000 it cant not establish any connection. I have even add this into the iptables too -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 9000 -j ACCEPT. I have disabled the SELINUX too. What else must I do to make it work any suggestion please?
I have a gateway server which is currently listening for TCP/UDP packets and authenticating clients if their details IP/MAC is known.
I have a couple of clients who's network equipment sends ICMP pings to a remote site to determine internet connectivity and I'm missing those resulting in the client's device not logging in.
Is there some way that I can write a listener similar to a listener for TCP/UDP sockets which will listen to ICMP packets and pick up the IP and MAC address of the sender upon which I can perform processing on?
For quite some time now, I've been trying to implement a multi-threaded or forked TCP server to perform the following action:1) Listen for new connections on all ip addresses on a specific port.2) Wait for a new connection to arrive3) When a new connection coms in, fork or thread to free up the listening process so it can go back to #2.When handling a client after it's been forked/threaded4) Get the connected client's ip address.5) Perform some in-house processing;6) Read the data sent from the client (checking for http connections)7) Perform some more processing;8) Write some data back to the client based on the above processing9) Close the socket/thread/forkI've tried implementing an solution similar to the multi-threaded example show here http://perl.active-venture.com/pod/p...-sockets.html; as well as looking at the CPAN solutions Net:aemon and POE::Component::Server::TCP but these don't seem to give me the information needed.The active-venture solution provides me with what I need, but randomly exits without reason/error and when attempting to change the 'for' loop to a 'while' loop, it keeps throwing up different errors.
Trying to get OpenbavoPOS to connect to my remote Postgresql database, but so far i've only been able to connect to the local postgres installation. I _am_ able to access the remote databases with psql. I've read literally dozens of pages, and am pulling my hair out. I'm trying jdbc:derby.//192.168.15.10:5432/bravo I get back java.sql.SQLException no suitable driver found for jdbc:derby.//192.168.15.10:5432/bravo If I use jdbc:derby./root/bravo - all is OK, using a local database created in /root I have jdk installed on the client; does it need to be on the server also?
Server = CentOS 5.4 PostgreSQL version 8.1.21 Client = CentOS 4.8 PostgreSQL version 8.1.4
Im trying to extract the href of a <link> tag from a html page however as some links contain further preferences I seem to be unable to extract them, do you have any idea how I can write this: Link:
Groovy is an object-oriented programming language for the Java platform. I do not have experience in Java, only perl and shell scripts. Recently I have been asked to maintain a software written in groovy (also to make enhancements). So can I learn groovy without knowing java language. or isit I have to learn java before venturing into groovy.
I'm trying to make an SSH script for my place of employment. This script, I want to go out to the server hostnames we have specified (in another file) and change a users account password. We use Kerberized telnet, so if telnet root hostname fails, I want it to use ssh username hostname and use the old password (specified). If both fail, I want it to ask the user what the port should be and input the port in the ssh command.
But I'm having a issue having it try telnet root hostname and if it fails then, try to ssh in, I have no clue how to have it proceed. Is it an if statement? Here's the telnet failed message: telnet: Unable to connect to remote host: Connection refused
I'm at wits-end here trying to get Fedora up and running. Just installed Fedora 14 from a live CD on my 32-bit Toshiba laptop computer. I'm at college for the semester, which means all internet access is through my school. Problem is, in order to get online via my school, I need a java plugin for Firefox. For non-Windows computers, users must log-in to the network through a web browser, using a Java applet. This requires a java plugin. I cannot access my school's network without it. An alternative to this is to use my Droid X's wireless tethering capability. This is normally how I solve the Java problem whenever I install a new Distro (I'm a distro-hopper).
Unfortunately, however, my computer is not picking up any wireless connections and I have no idea how to search for them. When I right-click the networking icon, I ensure that networking is enabled. When I left-click the icon, it's not even showing a list of wireless connections, leading me to believe that either a) wireless networking is disabled or b) Fedora doesn't notice that I have a wireless card at all. Maybe neither of these are the problem, I don't know. I'm no expert by any means. In fact, I'm quite new to Linux. I'm posting this from a netbook which has PCLinuxOS on it, which is connected to my school's network via ethernet. I looked up the java installation instructions on the java website.
I followed them by a) downloading the RPM and saving it to my external hard drive, which I then used to transfer it to the laptop which has Fedora 14 on it. I did my best to follow the instructions for installation which are given on the website, but to no avail. I cannot get any plugin to show up in Firefox. When I run the "java -version" command, I get "java version 1.6.0_22", and two more lines of output, which indicate that I have java installed on my computer. Is this correct and if so, how do I get the plugin installed in FireFox? I've opened FireFox and checked to see if the plugin is there or not, and it is not.
I tried to install vsftpd on my server and while the installation went fine, I can't run
Code: restart vsftpd As I the get error Code:
restart: Unable to connect to system bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory Though I'm able to restart the service with
sudo /etc/init.d/vsftpd restart with a warning telling me to use the service utility. Not only that, but despite the port being open it won't allow me to log in, it just hangs, and I have local users enabled (I've used the default .conf file). Does dbus not come installed in 10.04, and if I did install it would it make a difference for restarting the service? Are there further steps needed not available in the tutorial on the Ubuntu Server Guide for 10.04 to enabling local user authentication? -edit- Figured it out, dbus wasn't installed, vsftpd is working fine now.
I install and configure the vncserver following and reading 1000papers, but all of this present the same problem; when i try to connect to my vncserver,recive this mesage: unable connect to socket: No route to host (113) The OS version is Fedora Core 14 and tigervnc-server i try different solutions including:Allow TCP connection modifing files /etc/gdm/custom.conf and /usr/share/gdm/gdm.chemas Disable SELinux removing iptables Here follow the vncserver configuration:
[code].....
The ip address of the vncserver is correct because i can do ssh on it. Where or what can i do?
I'm trying to setup PS3 media server on my new OpenSuse 11.2 and I'm being unable to connect to the PS3. The multimedia server seems to being working ok, only it has not appear on XMB.
I've been searching on PS3 Media Server forums and try a couple of solutions regarding /etc/hosts and adding full qualified domain name of server to it, but it doesn't seems to work.
I am trying to setup a dhcp server for my internal network. I have two NICs, a modem, and a wireless router. I have my server connected directly to my modem which is providing me with Internet access on eth1 and is working fine. I have dhcp and dns setup on eth0 which is connected to my router. The router shows that it is connected to the Internet but when the router gives a client computer an IP address, the client is unable to connect to the Internet but can connect to the router. I will post my configuration files below with my current configuration.
i am running Oracle EBS R12.1.1 on Linux RHEL 5.3 ,I am not able to run java applets on the same . I installed latest rpm of jre-1.6.0_18 , and it is there in /usr/java/jre1.6.0_18 but when i am searching by command its showing
I am using the latest version of Cont OS 5.I installed Sun Java into the Firefox browser and it works fine for web content but not for accessing my office Windows Desktop remotely. It seems that I have to install Sun Java at Root (I think).installing the latest version of Sun Java for the purpose of accessing my Windows Desktop?
I just switched from Ubuntu to Fedora 13 because I was unable to get Ubuntu to connect to wireless networks. I tried everything suggested in help and forums, and kept getting "Bad Password" with WICD and Network Manager. Now, with Fedora...I still can't connect.
Problem #1: The guide says to "...make sure that the relevant wireless interface (usually eth0 or eth1) is controlled by NetworkManager," and that I do this via: System>Administration>Network
However, there is no Network option under System>Administration.
Problem #2: I open Network Manager, which displays a list of networks. I click on mine, configure it with WPA and the right password, and it fails to connect: "The network connection has been disconnected."
I couldn't connect my Micromax 300G modem in Debian Linux. From internet (in Windows Vista), I came across the information of USB_ModeSwitch and then I downloaded it. While going to install it, I came across the problem that TCL-interpreter is not available in Debian Linux. Then again I restarted my laptop in Windows Vista and connected my Micromax modem and from internet downloaded TCL8.5.10-src.tar.gz. But while going to install it, I came across the problem that " configure: error: no acceptable C compiler found in $PATH " . Also as presently, I am unable to connect my modem therefore I am unable to issue the code:" apt-get update ".
I guess I am still a beginner since I can't do this. I was able to install Java in another computer successfully. I have both running now. The successful one, had a folder for firefox the one with the problem does not have that folder, (firefox). The instuctions I trying to follow are here: [URL]
Not having a firefox folder I installed using /usr/lib/mozilla/plugin . But the plugin has an X attached to the respective icon in /usr/lib/mozilla/plugins.
[URL] This website seems to offer the solution to my problem, I will need help in undoing my previous steps or in removing the incorrect plugin. But will I still need a firefox folder or directory as I have on the other machine? I have a K7S5A PRO MB and Athlon Xp 1800 + processor.
I would like to run java program on fedora10 but I am facing some problems. When I use which java command it show usr/bin/java directory. I was trying to set the java_home path in bash_profile,but there is no affect.
Situation: this semester I took an class called Introduction to Software Design with Java.It was my first intro to programming. The class had a very odd structure:1. The text was extremely high level. The first few chapters were all about object oriented programming, how objects interact, all about specification, etc (without ever talking about implementation).2. The lecture simply followed (directly) the text. And as a result was rather uninteresting.3. While highly theoretical (in that it was very high level approach), we never talked about how the computer was dealing with the information, etc.as all very "hand waving/magic" approach.
Okay so enough of the complaints:Question: This summer I'd like to dive a bit more into a language mainly out of frustration and lack of a good book. I'm thinking perhaps a lower level language.1. Would C++ be a good second language? Or should I give Java more time?2. If I am going to go with something else, is C++ sufficiently different, or should I go with C
i want to compile function c in java and compile library is success.. when i call the library in java and error is :
Exception in thread "main" java.lang.UnsatisfiedLinkError: no libfunc.so in java.library.path at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1689) at java.lang.Runtime.loadLibrary0(Runtime.java:823) at java.lang.System.loadLibrary(System.java:1028)
I've just installed java (jre-6u21-linux-i586.bin) on Red Hat 4.4 AS and issued this command to check the java version: java -versionand got :bash :java: command not found
I'm using Epiphany. Some, but not all, Java apps are not rendering, that did render in Windows. I'm getting dialogue that says applet and Java plugin not installed.
I'm sure there is an easy solution for this but I can't figure it out. Just recently installed F13 and I'm trying to load Java and Adobe Reader, but I can't get installer to come up. I have tried both Firefox and Chrome to download it. I have tried to install by command line, but no luck.
im using the Fedora 14 64Bit Version, and ive wanted to install the Java plugin for Firefox, but everytime Ive wanted to install it, it tells me this:
Code: [root@JaKsi JaKo]# /usr/sbin/alternatives --install /usr/lib64/mozilla/plugins/libjavaplugin.so libjavaplugin.so.x86_64 /usr/java/default/lib/amd64/libnpjp2.so 20000 failed to read link /usr/lin64/mozilla/plugins/libjavaplugin.so: No such file or directory the primary link for libjavaplugin.so.x86_64 must be /usr/lin64/mozilla/plugins/libjavaplugin.so [root@JaKsi JaKo]# Why lin64? Can I change this?