Programming :: Get The Ip Address Of The Client Machine?

Jan 2, 2011

I am connecting to linux server(RHEL4.7) using putty from my windows machine. Is there any way to get the ip address of my windows machine using C program in linux.

View 9 Replies


ADVERTISEMENT

Programming :: Remote Client Mac Address On Socket Descriptor?

Dec 14, 2010

I want to get the connected client MAC Address after accept() call. I can get the IP address of the client but i don't know how to get the client MAC Address in my this programme. Here I am Posting my Code.

#include<stdio.h>
#include<sys/socket.h>
#include<sys/types.h>

[code]....

View 10 Replies View Related

Programming :: Fetch The Remote Client Mac Address On Socket Descriptor?

Dec 14, 2010

I have written one simple code which is posted here. i want to fetch the Mac Address on socket descriptor which is returned after accept () call.

Code:-

#include<stdio.h>
#include<sys/socket.h>
#include<sys/types.h>
#include<netinet/in.h>

[code].....

View 1 Replies View Related

Programming :: Ip Address Of Machine Using Bash Script

Jul 22, 2010

I want to get only the IP address of the machine and store it in a variable.

I have tried following commands and I get an error:

Error is -

View 9 Replies View Related

Programming :: Detect A Closed Tcp Client Connection When Client Is Only Receiving Data ?

Mar 9, 2011

I am writing a TCP server in C, and the server listens to incoming client connections and accepts them. It then creates a thread to handle the client. The clients are expected to only receive data from my server and not send any data. So if I use a select() call with a recv(), I believe that the recv() will just block forever since there will not be any data coming from the client. If I use a non-blocking recv(), then this will just return a 0 which tells me nothing because the client is not expected to send any data. I am not sure if I have misunderstood some socket concepts, but I need a solution to detect when the client has disconnected so that I can close the socket and stop sending data to the client. As I understand it, simple ACKs etc are not captured by the recv(), and only data sent by the client will cause recv() to return a non-zero value, so I am not sure how to know when the client has disconnected.

View 7 Replies View Related

Programming :: Pass Ip Address, Port Address And Some Parameters From Command Line?

Apr 1, 2011

I want to pass ip address,port address and some parameters from command line using python script.The ip address and port address for establishing socket connection and remaining parameters to execute different connection.

View 1 Replies View Related

Programming :: Shared Memory Address Area In Process Address Space?

Feb 21, 2011

if i attach a shared memory to my process whch part of the address space it will add(like stack, heap, data, code...).

View 3 Replies View Related

Programming :: Physical Versus Virtual Mac Address And Mac Address From NIC's Firmware?

Apr 6, 2011

I need a small shell based program that prints the mac address of physical ethernet adapter from it's firmware. I need this utility for license generation and appliance activation. I have tried several example but none of them is flawless, The easiest method I have found is to parse the output of "ifconfig" command but it has also some drawbacks.

1. Firstly program should differentiate between physical and virtual adapters. Physical means installed on board(wired or wireless) or installed additionally. Virtual adapters are those created by VPN or created by virtualization apps such as VirtualBox/VMWare etc. I am not interested in virtual ones.

2. In case of more them one physical adapters(wired and wireless), it should print the mac address and description(name & vendor) of both/all adapters.

3. If media is disconnected then also it should be able to read the mac address and description(name, vendor) of card.

4. This one is bit complex. I know that 'ethtool' can show you the universal mac address but it's limited to use only 2 types of drivers and won't work in all cases.

View 2 Replies View Related

Programming :: Translate Virtual Address To Physical Address In Application?

Nov 18, 2009

I want to translate the virtual address to physical address in linux C application, how to do that?

View 1 Replies View Related

Programming :: Access At Physical Address - I/O Address In My Map Memory?

Dec 17, 2008

When I try to access at physical address (0xD0000), we known that it is necessary to convert physical address to virtual address using function IOREMAP(0xD0000, 1024) and return me 0xC00D0000.

Now our doubt is when I have a board with I/O in address 0x150, is it necessary to convert this address to other virtual address??? or with inb(0x150) return me state of I/O in this address? How can I known where is this I/O address in my map memory?

View 7 Replies View Related

Networking :: Why Tun0 On Client Is Not Getting An Ip Address

Apr 17, 2010

why tun0 on my client is not getting an ip address?

client config:

Code:

client
dev tun
proto udp
remote 66.219.29.99 1194
resolv-retry infinite

[code]....

View 2 Replies View Related

Red Hat :: Ssh Client Works On All But One Machine

May 30, 2010

I have RHEL 4 U7 installed on 4 machines, with approximately same configuration. yesterday i was trying to set up public key authentication for ssh on them to be able to run some automated jobs but i had a problem with one particular machine: when used as an ssh client to access the other 3, it kept prompting for a password. the configuration worked on the other 3, they can be accessed from each other with no problem. they can also access machine 1 - the one that has the ssh client problem - too with public key authentication.

When i run ssh -vv on machine one i get the following output :


Code:

This is my machine 1's ssh_config file:

Code:

View 14 Replies View Related

OpenSUSE Network :: Dhcp Client Does Not Receive The Dns Server Address

May 18, 2010

I have installed a working DNS server on my home network. I have an unique server, devoted to dns, gateway, storage which runs opensuse 11.0 (I known that it is rather old). Two new clients require DHCP. I have installed, using yast, a very simple DHCP server, according to the following config:

option domain-name "XXX.XXX";
option domain-name-servers 192.168.0.1;
option routers 192.168.0.1;

[code]...

(I have tried to add "ddns-update-style none", and to remove the ntp-servers option, since my server is not a time server, without success). Unfortunately, even if the client (a mac running OSX 10.4) receives a right IP and gateway address, it displays neither dns server address nor default domain name. The same mac, on my office network (not managed by me), receives everything.

View 5 Replies View Related

Software :: RDP Machine From Windows Client?

Mar 2, 2010

I was wondering how can I rdp to a Linux machine from a windows client.

View 2 Replies View Related

CentOS 5 :: Start NX-Client On A Machine?

Dec 17, 2009

how I can start NX-Client on a Linux-machine? [URL]... But here is nothing how can I start this tool? Only for windows.

View 5 Replies View Related

Networking :: Determine The IP Address Of A Machine?

Apr 6, 2009

I'm just an undergrad with duck tape and google searches to hold this place together. Anyways on to my question. Where I work, we have a tape library but no way to configure it, the backup software simply talks to the robot to load and unload tapes. There is a network port on the library and I do have the software, but have been running into problems getting access. I was wondering, is there a way to determine the ip address of this machine by plugging in a cross over cable with a laptop and scanning it? What tools could I use to do this?

View 5 Replies View Related

Networking :: Forward One IP Address To A Machine To Get Rid Of Nat

Apr 12, 2010

My ISP can give me up to 5 ip addresses. Is it possible to "forward" one of them to a machine to get rid of nat? I was thinking of "forwarding" one public ip to my machine and let the rest of the network share one ip using nat.

View 7 Replies View Related

Programming :: Find The Mac Address For A Given Ip Address?

Feb 16, 2010

I am trying to find out the mac address of the eth0 port on linux probe. This port is controlled by kernal and hence I don't have control over it. How do I find out the mac address of this port ? Is there any system call which will take the ip address and will do the lookup on the linux's ip table to get the mac address ?

View 6 Replies View Related

Ubuntu Networking :: Dhcp3-server Is Not Committing Correct Dns-address To Win XP Client?

Oct 15, 2010

I'm troubling setting up my dhcp3-server.Although I've configured "option domain-name-servers 192.168.1.1" in my dhcpd.conf my windows-xp-clients dns-server address is set to 192.186.1.1.This is strange! All other things seem to work correctly.This is my dhcpd.conf:

Code:
ddns-updates on;
ddns-update-style interim;

[code].....

View 3 Replies View Related

Server :: Send Traffic Down WAN Link Depending On Client IP Address Range?

Apr 15, 2011

I am running Debian Squeeze with the following basic services running:DNS
DHCP
Samba
Squid

The server is setup with three NICs: eth0 (WAN1), eth1 (WAN2), and eth2 (LAN).The server addresses clients with an IP range of 10.0.30.1 - 10.0.30.254. Some clients will be set with reservations so they fall into the 10.0.40.1 - 254 range.

What I want to do is have any outgoing external traffic coming from the first range (10.0.30.0) to use WAN link 1, and any outgoing external traffic coming from the second range (10.0.40.0) to use WAN link 2.

I have sort of got something working. I have created a bare minimum transparent squid3 setup on port 3128, and set the iptables as follows:

Code:
iptables -t nat -A PREROUTING -i eth2 -p tcp -m tcp --dport 80 -j DNAT --to-destination 10.0.0.1:3128
iptables -t nat -A PREROUTING -i eth0 -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 3128
iptables -t nat -A PREROUTING -i eth1 -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 3128

I can get internet access, however obviously it only goes through one WAN link. It also seems slower than it should be. I experimented with tcp_outgoing_address, but seemed to not be my friend.

View 4 Replies View Related

Ubuntu Networking :: NFS Client Connection On Only One Machine

Dec 13, 2010

I have a number of Ubuntu machines running. Our NAS is FreeNAS. I am typing this on an Ubuntu 10.04 desktop that is successfully connects to an NFS share on the FreeNAS box every day. In addition, we have 3 10.04 server machines that also stay connected to the share successfully, Yesterday, I installed a new 10.04 server machine using IP 192.168.0.11. Everything works except connecting to the NFS share. It always returns with: mount.nfs: mount to NFS server '192.168.0.13:/mnt/amrd0s2/public-NFS' failed: timed out, giving up

Here's what I have checked: I can ping 192.168.0.13 (obviously) The NFS export mask is set to 192.168.0.0/16. The other machines are all on the same subnet as this problem machine (192.168.0.*) nfs-common, nfs-client, and portmap are all installed and running correctly. portmap is running correctly showmount -e 192.168.0.13 give the proper response:

Export list for 192.168.0.13: /mnt/amrd0s2/public-NFS/ 192.168.0.0 iptables isn't even installed (these machines are segregated in a private network behind a hardware fire all) There is nothing related to NFS is any of the syslogs. dmesg has one entry: [6.025966] FS-Cache: Netfs 'nfs' registered for caching which is insignificant. how to at least debug the nfs-client short of downloading the source and actually stepping through the code.

View 1 Replies View Related

Fedora :: Internet Browsing From Client Machine ?

Jan 14, 2010

I have a Fedora 11 Server which act like a Internet gateway for our LAN. I have my own iptables andt squid. We daily starts up & shuts down the server. Since last few days I am facing a unique problem. When we starts the server we are able to brows the Internet on the Server but from the client machine we are unable to do so but we can ping any internet sites/Static IP from the Client machines. After 2-5 times of startup and shutdown of the Server. We are able to browse internet from the client machine.

View 2 Replies View Related

Networking :: Cannot Add Nis Users To Groups On Client Machine

Jan 13, 2010

I've just set up NIS on my home network (probably not necessary on this scale, but I wanted to try it out). The server and the clients are all running Debian Lenny. I've got it up and running and have my NIS users on the server logging into graphical desktops on a client machine.My problem is this: The users cannot access a lot of services that are native to the client because they're not members of the right groups (for example, they have no sound because they're not members of the audio group). I figured it would be easy; just add users to groups with the usermod command but the response I get is that the user in question is not present in /etc/passwd. If I understand NIS correctly I'm not supposed to add my users to /etc/passwd on the client machines.

View 7 Replies View Related

General :: Nfs - After Mounting Client Machine Get Hang When Run Df -h

Aug 19, 2010

whenever i execute ls -ltr i get following entry. But there is no such user as 501 .What is the issue.

[Code]....

The problem is this folder is mouted on client machine using nfs.But after mouting client machine get hang when i run df -h.

View 2 Replies View Related

Fedora Networking :: No IP Address For Local Machine?

Mar 31, 2009

I tried to authenticate using ntlm proxy authentication service and my computer could not retrive the IP address. Currently I am using fedora cammbridge

View 1 Replies View Related

Slackware :: Which IP Address To Use When I List Machine Name In /etc/hosts?

Jul 21, 2010

1) I'm not sure which IP address to use when I list my machine name in /etc/hosts, particularly after reading:

Quote:

By the w]ay, Arnt Gulbrandsen <agulbra@nvg.unit.no> says that 127.0.0.1 # should NEVER be named with the name of the machine. It causes problems # for some (stupid) programs, irc and reputedly talk. :^)

Here's what I have now:
Code:
root@eagleswing:~# hostname
eagleswing
root@eagleswing:~# cat /etc/HOSTNAME
eagleswing.5binc

[Code]...

I'm not certain how to include my router in /etc/hosts so I can use it to link my PCs as stated above. I was thinking of writing (see above link):

192.168.2.1 localbelkin Will this work & is it proper?

3) Do I need to make use of any other IP addresses at this link? What are the WAN IP & Default Gateway addresses used for? I am going to be serving documents & running scripts on Apache.

View 2 Replies View Related

Fedora Networking :: Login To Remote Machine Through VNC Client

Apr 14, 2009

I am using VNC to login to remote machine (vncserver). My question is; How can I login to remote machine (vncserver) through VNC client, without having to login to vncserver first physical. For better explanation here is an example: If john wnat to login to vncserver remotely first he has to login the vncserver physically then he can login remotely.

View 5 Replies View Related

Server :: Nfs - Mount Shared Data From Client Machine

Feb 9, 2010

i have installed nfs server on my redhat machine.when i want to mount shared data from client(suse)machine the following error occur. "mount.nfs: mount to NFS server '10.3.31.146:/home/usbtest' failed: System Error: No route to host" both machines ping each other successfully.

View 1 Replies View Related

Software :: Subscribe Channels For Client Machine In Spacewalk?

Nov 30, 2010

If I go to "Alter channel subscriptions" page of a VM, I do not see any channels to subscribe. It just shows "None (Disable service)". On the same time, I'm getting the following errors in Apache error log and rhn_server_xmlrpc.log

[code]...

View 1 Replies View Related

General :: Networking - Changing MAC Address In A Machine (fedora 8)

Jun 24, 2010

I am doing a test on MAC learning and for that ,I need to change my MAC address of linux machine while the interface is UP. To be more clear, consider eth1 in a fedora core 8 machine. And while the interface is UP. I am running a script which changes the MAC address from 10:1:1:1:1:1 to 50:50:50:50:50:50 (i.e 50 times MAC address is changed) . When I try to change the MAC address when the interface it UP, it gives me the following error :

siocsifhwaddr : device or resource busy

I know the way of changing the MAC address by bringing down the interface but I need to know if this can be done while the interface is UP.

View 2 Replies View Related







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