🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #16436

Re: Socket Newbie

#16436
From: deno
Date: Thu, 18 Feb 1999 00:00
24 lines
1262 bytes
Hi, Mark
It should work if you specify loopback address and any port number that is
big enough
to not interfere with well-known ports ( like ftp, telnet ...). Try
Socket sock = new Socket("localhost",3000);
or
Socket sock = new Socket("127.0.0.1",3000);
Good luck,
Oleg

Mark Zamoyta wrote in message <7a798j$f2l$1@oak.prod.itd.earthlink.net>...
>Hi,
>
>I want to test a client and a server program at the same time on my own
>computer.
>
>The socket class constructor accepts a hostname and portnumber - what do I
>set these to?  All the examples I've seen connect to external servers.
>
>Thanks,
>Mark
>
>
>
Technical Details
Message-ID: <f35z2.219$uu3.9743@news.total.net>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <7a798j$f2l$1@oak.prod.itd.earthlink.net>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,e482f07605dfccc0
X-Google-Attributes: gidf74b3,public
From: "deno" <elen@total.net>
Subject: Re: Socket Newbie
Date: 1999/02/18
Message-ID: <f35z2.219$uu3.9743@news.total.net>
X-Deja-AN: 445939373
References: <7a798j$f2l$1@oak.prod.itd.earthlink.net>
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
X-Complaints-To: support@total.net
X-Trace: news.total.net 919395659 205.205.161.241 (Thu, 18 Feb 1999 22:40:59 EDT)
Organization: TotalNet Inc.
NNTP-Posting-Date: Thu, 18 Feb 1999 22:40:59 EDT
Newsgroups: borland.public.jbuilder.java.language