General :: Windows - Using Localhost TCP/IP Communication In A Program?

Mar 27, 2011

I have an application which is separated to several parts (processes) communicating over TCP/IP, using a pre-defined port on localhost.Is this always safe? Can some kind of a firewall (corporate, locally installed, Windows firewall, etc) block this traffic? Or can some user settings in the OS that can block this traffic?The OSes I'm interested in are Windows (XP through 7) and Linux (Ubuntu, RHEL, SUSE)

View 2 Replies


ADVERTISEMENT

Programming :: Serial Port Communication Program Always Lose One Byte Data: 0x00?

Dec 13, 2009

I wrote a serial port communication program to access a equipment.

int main(void)
{
int fd = 0;
int nread = 0,i = 0,nwrite = 0, tmpread = 0, m = 0, n = 0 ;

[code]....

View 2 Replies View Related

General :: /localhost Recursion/cache/iptables - Allow Localhost Recursion But Deny Recursion To External Clients?

Mar 8, 2011

I am a newbie in Linux. I have Fedora 13 OS 32 bits. I am working with PowerDNs and Poweradmin. How can I configure this with PowerDNS?

1. Allow localhost recursion but deny recursion to external clients. Is there a tutorial for that?

2. Set up cache nameserver for localhost (like caching-nameserver in Bind).
Is there a tutorial for that?

3. My Master Server with PowerDNS is working well from localhost but external clients cannot access it.

I have iptables with these rules:

[Code]....

View 1 Replies View Related

General :: Serial Communication In Between VM And ESX?

Apr 28, 2010

I am in verse to understand the serial communication between guest and host.I have just added a serial port through VI Client selecting "Use serial port on host"(host being ESX host).If I am on VM and run :

ll > /dev/ttyS0

I understand that it should get displayed through ESX Host. So On ESX Host, I typed:

cat /dev/ttyS0

But nothing worked !

View 1 Replies View Related

General :: I2C Communication From Kernel Space?

May 11, 2011

How do you interface with the Linux I2C driver from kernel space? For example, if I had LEDs connected to a GPIO expander on the I2C bus, how would I blink them twice before going down for reset from machine_reset()?

Essentially, I believe I need to call the functions i2c_smbus_write_byte(), i2c_smbus_read_byte(), etc. But these functions require I2C client data that I do not understand how to supply.

View 1 Replies View Related

General :: Signal Communication Between The Processes?

Sep 20, 2010

I am writing a code which communicates between 2 processes created by fork() statement. Parent reads a file and write the data into a shared memory and sends a signal to the child. The child then receives a signal from the parent to start reading. After finishing the read operation the child sends a signal to the parent asking it to resume its action. Some things are going wrong in my code.

1. segmentation error in memcpy() statement.
2. terminal hangs after running the code.
3. Synchronization problem between processes..

Code: #include <stdio.h>
#include <sys/types.h>
#include <wait.h>
#include <unistd.h>

[code].....

View 4 Replies View Related

General :: Bluetooth USB Dongle - Communication Setup?

Feb 24, 2010

I am very new to linux and I have been given a school project that involves getting my windows pc talking to a linux single board computer that I have. It can be found here. [URL]. I have two bluetooth usb dongles, one to plug into my pc and one to plug into my linux board, I know that both work as I have tried talking to them both using my mobile/cell phone. Also when I plug the dongle into my linux board it recognizes something has been plugged in. However I am unsure where to go from here. I have tried "searching" for the device using my windows pc, but it will only find my cell phone and not my linux board. I also tried mounting it similar to how i would mount a usb drive e.g. mount dev/sda etc. How to setup the linux board for bluetooth communications?

View 14 Replies View Related

General :: Palm Vx & Serial Mouse Communication ?

Apr 25, 2011

When I try to Sync a Palm Vx to my PC through serial port I get a communication error message in the gadget. My PalmOS Devices application is already configured to use tty0 or tty1 in unsuccessfully trials. I have a lot of information in the addresses, agenda, notes, etc. and do not want to loose that information gathered for years, nor to return to Windows.

As a test, I used a serial mouse in the serial port and It didn't work. I verified the Bios Setup and COM 1 and COM 2 are enabled.

I also checked my system serial support with the following commands:

And messages were OK when compared with typical outputs. My machine is a Pentium 4 CPU 1.6 GHz, in a U8668 motherboard (Award Software International). I have Ubuntu 10.04 LTS with Gnome.

I am new in Linux and don't know Bash yet. I had followed indications from Internet tutorials successfully, but I don't know how to proceed in this case.

View 1 Replies View Related

General :: Will Be Able To Run Every Windows Program ?

Apr 15, 2010

Shouldn't a virtual Windows running on linux allow that in theory?

View 1 Replies View Related

General :: Establish Serial Port Communication Through USB In System?

Jun 30, 2011

I am new to Ubuntu and I need to establish a serial port communication between my PC and microcontroller MSP430G2452.

On connection the USB available with the Launchpad and using lsusb.

It identifies the port as:

Bus 005 Device 003: ID 0451:f432 Texas Instruments, Inc. eZ430 Development Tool

After establishing such a connection what I need to do? My aim is to send a byte of information in Linux.

View 1 Replies View Related

General :: Communication Between Shell Script And Binary Files?

Feb 18, 2011

Iam executing a shell script from my code and i need to "establish communication between shell script and my program(i..e.. my script iam executing and code should communicate each other while executing)" in one shot i want to implement IPC`s in shell script..! bye the way iam using system() call to run the shell script.

View 10 Replies View Related

General :: Parallel Port Communication With RHEL6 Not Working?

Dec 13, 2010

I was trying out the parallel port communication on RHEL 6 but found it not working:
#echo hello > /dev/parport0
write error :Invalid argument".
#ll > "/dev/lp0"
/dev/lp0:No such device or address

View 2 Replies View Related

General :: Serial And Parallel Data Communication On Fedora 13

Apr 22, 2010

I have been trying out serial and parallel data communication on Fedora 13 Beta. I can easily see the list of serial ports through:

Code:
setserial -g /dev/ttyS[0-3]
And can also write some data through:
Code:
ll > /dev/ttyS0
But I am unable to see parallel ports
I can see something like:
Code:
/dev/parport0
But when I try out:
ll > /dev/parport0
It throws error.

View 3 Replies View Related

General :: Windows - Program Which Uses LZW Compression

Oct 4, 2010

how to do Lempel-Ziv-Welch compression using pen and paper for my algorithms and data structures class. Unfortunately we have only a couple of examples in our book of how it is done. I'd like to practice compressing and decompressing text using it, but I need to find a way to check if I'm right doing it right or wrong.

So I'm looking for some preferably free/open source program which can compress and decompress LZW for Windows or GNU/Linux. Programs without binary distributions are fine too.

View 2 Replies View Related

General :: Background Process Execution Hangs Console And Ip Communication?

Feb 9, 2011

I have 3 processes to be executed in a particular sequence.

ProcessA
ProcessB
ProcessC

The requirement is that all the processes should run as background processes.

ProcessA talks to ProcessB and ProcessC using sockets.
ProcessB talsk to ProcessA only using sockets.
ProcessC talsk to ProcessA only using sockets.

[Code].....

View 3 Replies View Related

General :: Call Windows Program Using Wine?

Jul 10, 2010

I have Linpus runnig on my Aspire One. I would like to setup an icon on the menu to start a windows program using wine. I can start it manually and it works fine. I want to be able to access it directly from the desktop.

View 3 Replies View Related

Networking :: Map Url Adress To Localhost (edit Hosts File In Windows)

Feb 3, 2010

I run a local apache server, that has some virtual hosts running. Now I want to be able to locally connect to these virtual hosts, but when I try this, it puts www and .com behind the url and says it can't find it. On Windows I know the equivalent, editing the hosts file. Is there something similar in linux?

View 1 Replies View Related

General :: Get A Windows Compiled Program To Work Through Wine?

May 28, 2010

I'm currently trying to get a windows compiled program to work through Wine to run on Linux and MacOSX.

When I run the program through wine, it prompts me to install Gecko which I do. Later on in the program, it attempts to use MSHTML to render HTML but I get these error messages on my console instead.

err:mshtml:init_xpcom NS_InitXPCOM2 failed: 80004005
err:mshtml:HTMLDocument_Create Failed to init Gecko, returning CLASS_E_CLASSNOTAVAILABLE
fixme:ole:CoCreateInstance no instance created for interface {00000000-0000-0000-c000-000000000046} of class {25336920-03f9-11cf-8fd0-00aa00686f13}, hres is 0x80040111

I'm using Wine 1.1.34 and a similar bug was supposedly fixed in 1.1.33 [URL]

View 3 Replies View Related

General :: Program To Encrypt Folders That Works In Windows

Jan 18, 2011

I'm using a crypt solution called DriveCrypt(for windows). But now I need a solution that does the same that DriveCrypt does but must to work in both Windows and Linux.Somebody know some software that works in Linux and Windows to encrypt folders?

View 2 Replies View Related

OpenSUSE Network :: FreeNX Windows Error - Can't Open Display - Localhost:10.0

Jun 25, 2010

FreeNX server is SUSE 11.2 /(i586)

Cliente is windows 7 (64)

NX> 148 Server capacity: not reached for user: usb

View 4 Replies View Related

Ubuntu :: See Which Program Is "using" The Localhost?

May 28, 2010

I have LAMPP installed, It was working fine, until I installed something that is running a web server right now and it replace the LAMPP server port I guess.nd BTW, how can I see the system services so can I disable some of them and see what is starting with my OS? -.- (I remember a console app for that, but I cannot remember the name

View 4 Replies View Related

General :: Wine On Slackware 64-bit - Run A Windows Program (with Multilib Files)

Jul 19, 2011

I know the subject title makes it seem like this should be something on the Slackware forums but I think it can be generalized to other 64-bit Linux operating systems which is why I ask here. I'm running Slackware 13.37 64-bit and was wondering if I use Wine to run a Windows program (with multilib files), would it still run as if it had been used on a 64-bit computer?

View 2 Replies View Related

General :: Dos Option - Format Hard Drives - Load Out Side Of A Windows Program

Mar 25, 2011

what are all the options dos- ect! to format a HD. for the Linux platform is there not a way to load Linux out side of a Windows program .

View 7 Replies View Related

General :: Localhost 403 - How To Set Right Permissions

Jul 11, 2011

My DocumentRoot is set to /var/workspace/www

drwxrwx--- 110 radek www-data 4096 Jul 11 11:34 www

Firstly i had 777 permissions on that folder (and all files inside), but i don't like it, because everyone can see it and change it.

As Apache runs under user www-data:www-data, i tried to set the group and permissions:

sudo chgrp www-data www -R
sudo chmod 770 www -R

After i done that, http://localhost started to show 403 - Forbidden. It just looks like apache is taken as "other" (from owner, group, other) in words of permissions.

What should i change (permissions, owners, whatever) to keep all files visible and changable only for me (user radek) and executable by apache?

As i can see, there's one Apache process running under root and many others under www-data.

radek@me:/$ ps -Af | grep apache
root 13165 1 0 11:37 ? 00:00:00 /usr/sbin/apache2 -k start
www-data 13173 13165 0 11:37 ? 00:00:00 /usr/sbin/apache2 -k start
www-data 13174 13165 0 11:37 ? 00:00:00 /usr/sbin/apache2 -k start

[Code].....

View 1 Replies View Related

General :: Redirect Domain Name To Localhost?

Jun 1, 2010

I have a linux test machine which I would like to run a copy of a production webserver. This is a legacy application which does not use a property file for its server name. Throughout the application, the server name is hardcoded (example: open connection to myServer.myCompany.com).

Is there any linux trick which I can use to redirect all requests for a certain host back to localhost? I know in Windows that I can add an entry to the hosts file and have it redirect back to localhost. How do I do this in linux?

View 2 Replies View Related

General :: Localhost Port 25 Not Open ?

Nov 6, 2010

Made some network and hardware changes, and now I can't get the mailserver to work. It seems that sendmail can't loop to itself on 127.0.0.1. When I nmap localhost, I find that port 25 isn't open.

Naturally, nothing has changed on my system except for different routing, interfaces, etc.

So the question for sendmail gurus,is where should I be looking?

View 4 Replies View Related

General :: SSH To Localhost Permission Denied?

Oct 19, 2010

On the current machine:> su - username (it works)> ssh username@localhost (doesn't work)
What could be the problem?

View 6 Replies View Related

General :: Can't Open Display - Localhost - 0.0

Dec 1, 2010

Im using the Redhat 5, when m trying to connect from X-start it showing error:

Can't open display: localhost:0.0

Where as /etc/ssh/sshd_config settings are correct

Also ssh is running
$DISPLAY is set to localhost
still it is not started any x-service

View 2 Replies View Related

General :: Can't Open Display Localhost:0.0?

Mar 31, 2011

I'm trying to connect to my linux server but I'm having some major problems. The server had OEL 5 installed and my local pc is running Windows XP. I'm using PuTTy to connect to the server with Xming running on my loacl machine. I login as root and run the following command - export DISPLAY={ipaddress}:0.0I then run xclock and get the following error - Xlib: connection to "{ipaddress}:0.0" refused by serverXlib: No protocol specifiedError: Can't open display: {ipaddress}:0.0The strange thing is that on my bosses pc (who has got almost the exact same setup ie. PuTTy & Xming) is works perfectly.

View 2 Replies View Related

General :: Telnet Not Working For Localhost?

Apr 14, 2011

I've tried searching for this peculiar behavior, but couldn't find a solution that works for it - I have installed Redhat on my system and have a listener running on port 7878. I wanted to check if the port is accessible from a machine on the network, and so i telnet-ed from a remote machine and it worked. Now comes the weird problem - I used the same command (telnet xxx.xxx.xxx.xxx 7878) locally and it was able to telnet. However, if I try to connect using localhost, meaning, "telnet localhost 7878" or "telnet 127.0.0.1 7878", it gives me the following error:

Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused
telnet: Unable to connect to remote host: Connection refused

Here is my /etc/hosts entry:

# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6

[Code]....

Not sure where the problem is. I expect telnet to connect irrespective of whether i use the IP address OR localhost when i use telnet locally.

View 5 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved