LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-14-2006, 11:41 AM   #1
Tarekaz
Member
 
Registered: Sep 2005
Location: Aachen
Distribution: Fedora Core 4 , Suse , Xp , win98
Posts: 46

Rep: Reputation: 15
Question Connect TCP


Hey Guys,

I am running a FC4.
how can i connect to another IP in my LAN using one of these ports 445/TCP or 1370/TCP? any idea?

Cheers!!!
 
Old 02-14-2006, 11:44 AM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
En Oecher :)


Well, the choice of "connection method" commonly depends on what
kind of service is listening on that port on the other machine. That's
like asking "How do I connect to the power-point over there?" without
telling us what kind of plug it takes (US, GB, Central European, ...).


Cheers,
Tink
 
Old 02-14-2006, 11:48 AM   #3
Tarekaz
Member
 
Registered: Sep 2005
Location: Aachen
Distribution: Fedora Core 4 , Suse , Xp , win98
Posts: 46

Original Poster
Rep: Reputation: 15
jo,

this is what i got after an nmap scan

PORT STATE SERVICE
80/tcp open http
139/tcp open netbios-ssn
443/tcp open https
445/tcp open microsoft-ds
1370/tcp open us-gv
MAC Address: 00:01:4A:C4:894 (Sony)
Device type: general purpose
Running: IBM AIX 4.X, Microsoft Windows 2003/.NET|NT/2K/XP
OS details: IBM AIX 4.3.2.0-4.3.3.0 on an IBM RS/*, Microsoft Windows 2003 Server or XP SP2, Microsoft Windows XP SP2

Cheers!!
 
Old 02-14-2006, 11:59 AM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Ok...

445 is the XP/win2k3 equivalent of 139, it's winDOHs way
of telling others about its networking capabilities. To
get more info try a
smbclient -L //<IP>

No idea what us-gv would be on a winDOHs box, though.


Cheers,
Tink
 
Old 02-14-2006, 12:15 PM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Me neither but it looks like this would be an AIX vs a windows service.

I also didn't find a lot of info on globalview.

Last edited by michaelk; 02-14-2006 at 12:20 PM.
 
Old 02-14-2006, 01:25 PM   #6
Tarekaz
Member
 
Registered: Sep 2005
Location: Aachen
Distribution: Fedora Core 4 , Suse , Xp , win98
Posts: 46

Original Poster
Rep: Reputation: 15
Hey ,

After trying smbclient -L //IP , a password is required.
But i dunno which password is requested, is there is any default pass?
Any idea?
Cheers!!
 
Old 02-14-2006, 01:32 PM   #7
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Well... if it's your machine and you have file-sharing enabled
you should have a fair idea what the user-account and password
are ...
man smbclient
for details on how to pass those parameters ;}


Cheers,
Tink
 
Old 02-15-2006, 07:16 AM   #8
Tarekaz
Member
 
Registered: Sep 2005
Location: Aachen
Distribution: Fedora Core 4 , Suse , Xp , win98
Posts: 46

Original Poster
Rep: Reputation: 15
hehehe thanks for the hint ,
yes the machine is mine ;}

with this code i am only opening a connection and seeing what is shared and then closing it , is it true?
smbclient -N -L //IP

how can i maintain connection and transfer files ?

any idea on how to print ?

Thanks
Cheers!!
 
Old 02-15-2006, 07:30 AM   #9
Tarekaz
Member
 
Registered: Sep 2005
Location: Aachen
Distribution: Fedora Core 4 , Suse , Xp , win98
Posts: 46

Original Poster
Rep: Reputation: 15
by the way , how do i close port 111?
 
Old 02-15-2006, 11:19 AM   #10
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Quote:
Originally Posted by Tarekaz
hehehe thanks for the hint ,
yes the machine is mine ;}

with this code i am only opening a connection and seeing what is shared and then closing it , is it true?
smbclient -N -L //IP

how can i maintain connection and transfer files ?
Yep. To make it permanent, look at
mount -t smbfs //host/share /path/to/mountpoint


Quote:
Originally Posted by Tarekaz
any idea on how to print ?

Thanks
Cheers!!
Sorry, no. I operate the other way round ;}
But it should be possible to find that in the
samba documentation.


Cheers,
Tink
 
Old 02-15-2006, 11:20 AM   #11
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Quote:
Originally Posted by Tarekaz
by the way , how do i close port 111?
On which machine?


Cheers,
Tink
 
Old 02-15-2006, 11:23 AM   #12
Tarekaz
Member
 
Registered: Sep 2005
Location: Aachen
Distribution: Fedora Core 4 , Suse , Xp , win98
Posts: 46

Original Poster
Rep: Reputation: 15
on my fedora core4
 
Old 02-15-2006, 11:38 AM   #13
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
No idea why Fudora would be using sunrpc ... to check which
daemon/process is holding it open do an
lsof | egrep "(111|sunrpc)"


Cheers,
Tink
 
Old 02-16-2006, 01:28 PM   #14
Tarekaz
Member
 
Registered: Sep 2005
Location: Aachen
Distribution: Fedora Core 4 , Suse , Xp , win98
Posts: 46

Original Poster
Rep: Reputation: 15
this is the result of lsof | egrep "(111|sunrpc)" , weird weird
-----------------------------------------------------------------------
portmap 2109 rpc 3u IPv4 6632 UDP *:sunrpc
portmap 2109 rpc 4u IPv4 6636 TCP *:sunrpc (L ISTEN)
gnome-ses 2919 root 32u unix 0xca5de980 11158 /tmp/.ICE-u nix/2919
gconfd-2 2979 root 54u unix 0xdad80c80 11160 /tmp/orbit- root/linc-ba3-0-49aba1f9893d5
gconfd-2 2979 root 55u unix 0xdad80880 11163 socket
evolution 3046 root mem REG 253,0 817992 2820111 /usr/lib/ev olution/2.2/components/libevolution-mail.so
rhn-apple 3057 root mem REG 253,0 1111012 2401042 /usr/lib/li bpython2.4.so.1.0
rhn-apple 3057 root 3u unix 0xca5deb80 11157 socket
rhn-apple 3057 root 4u unix 0xc9249040 11159 socket
rhn-apple 3057 root 5u unix 0xdad80a80 11161 /tmp/orbit- root/linc-bf1-0-32af38a1dddcb
rhn-apple 3057 root 14u unix 0xdad80680 11164 /tmp/orbit- root/linc-bf1-0-32af38a1dddcb
evolution 3080 root mem REG 253,0 25236 2787111 /usr/lib/ev olution-data-server-1.2/extensions/libebookbackendfile.so
----------------------------------------------------------------
Cheers!!
 
Old 02-16-2006, 01:51 PM   #15
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
you can safely ignore all that don't have IPv4 in them,
which brings us down to portmap. Are you using NFS or
anything else that requires Remote Procedure Calls?


Cheers,
Tink
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
TCP cannections in TCP stack hegdeshashi Linux - Networking 1 01-04-2006 07:24 PM
3C509B can not connect over TCP/IP (gets DHCP address though) RSpendl Linux - Hardware 4 10-31-2005 06:56 AM
Samba: can't connect to my local linux machine but can connect to windows. Royle Linux - Networking 3 01-18-2005 05:32 PM
Woody 3.0 Open Ports 1470/tcp/uaiact 1518/tcp/vpvd What for?How can I remove them? alexxxis Debian 5 07-05-2004 05:18 PM
close port 6000/tcp 515/tcp SchwipSchwap Linux - Newbie 1 09-12-2002 08:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration